Should search limited to category also search subcategories?


(Jay Pfaffman) #1

I have a category for challenges/assignments that is empty except for its subcategories. I thought that I could search that category and find things in subcategories, but I can’t.

Here on meta, click on #plugin and search for “discord” you can find “Discourse to Discord bot” post, but if you search the plugin category, it goes away. It’d be cool if I could search across all those categories.


[Solved] Searching with in:wiki #category
(Erlend Sogge Heggen) #2

Hmm yeh, haven’t really encountered this before but I think searching category+sub-categories by default makes sense. We’d have to come up with some sort of syntax for when you only want to search the parent category though, like category:plugin+none


(Erlend Sogge Heggen) #3

This is now supported as per this change by @sam

So:

To search #howto and all sub categories use

something #howto

OR

something category:howto

To restrict it so you only search the category #howto without children use:

something #=howto

OR

something category:=howto


We still need to decide what to do about the “search this category” checkbox.


Advanced search weird category behaviour
(Jay Pfaffman) #4

Is there room for two check boxes?


(Jeff Atwood) #5

When is two checkboxes ever the right choice?


(Jay Pfaffman) #6

Sounds compelling. In that case, I vote for the check box to include subcategories.


(cpradio) #7

You mean to exclude? As it is included by default now…


(Sam Saffron) #8

I think he means this :slight_smile:

I also think include by default is probably a better call

“Search the #howto category” may need slightly better wording though.


Meta Search doesn't find Twitter How-To
(Jeff Atwood) #9