codidact / qpixel

Q&A-based community knowledge-sharing software
https://codidact.com
GNU Affero General Public License v3.0
394 stars 68 forks source link

Search can select help and policy docs, but doesn't return any results #1125

Open cellio opened 1 year ago

cellio commented 1 year ago

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.