When you select post_type in the search modal it pops up a list of defined post types to choose from, including HelpDoc and PolicyDoc. Being able to search those seems useful, but searches that select those post types return no results. It's acting as if the list comes from the list of known post types but indexing is more restricted.
Can we either (a) search help and policy (better) or (b) not offer them in the list (not as good but removes the expectation)? If we do the latter and someone knows the numbers for those types, it would still be possible to initiate a search (which will return nothing), but if we don't offer it, it's easier to say "sorry, you can't do that". I don't propose blocking these deeper in the code, just excluding them in the UI if we can't make them searchable.
https://meta.codidact.com/posts/288177
When you select
post_type
in the search modal it pops up a list of defined post types to choose from, including HelpDoc and PolicyDoc. Being able to search those seems useful, but searches that select those post types return no results. It's acting as if the list comes from the list of known post types but indexing is more restricted.Can we either (a) search help and policy (better) or (b) not offer them in the list (not as good but removes the expectation)? If we do the latter and someone knows the numbers for those types, it would still be possible to initiate a search (which will return nothing), but if we don't offer it, it's easier to say "sorry, you can't do that". I don't propose blocking these deeper in the code, just excluding them in the UI if we can't make them searchable.