Filter topics with certain categories OR certain tags

I am following Topics list filter feature to show a list of topics that match the filter criteria. When I go to /filter?q=category:amazon it shows all topics in the amazon category and /filter?q=tag:ai shows all topics with the ai tag. However /filter?q=category:amazon tag:ai only shows topics that have BOTH the amazon category and the ai tag. How can I show a list of topics that are categorized as amazon OR tagged as ai, but not necessarily both?

I also need the list to support multiple categories and tags, depending on the user’s settings.

Well we currently can filter for multiple topics & categories:

category:bug,feature topics in the bug or feature category including all subcategories
=category:bug,feature topics in the bug or feature category excluding all subcategories

tag:bug+feature topics tagged both bug and feature
tag:bug,feature topics tagged either bug or feature

…and we can also prepend “-” to exclude a factor.

But neither Advanced Search nor Topic List Filter supports the boolean operation “OR”. You could write up a Contribute > Feature request if you’d like.

References:

2 Likes

I’m not aware of any way to include both, but not together. AFAIK you can only include one, the other or both together, not each separately.

(As Todd mentioned, you could create a Contribute > Feature request to add this)

If the Topic Filter supported parentheses, I think this could work:

-(-category:support -tag:chat)