Advanced search issues where category name contains a space

Example from here on Meta.

Search for the term global - results from various categories will appear, including “bug” and “discourse hub”.

Search for global category:bug - relevant results are shown as expected.

Search for global category:discourse hub - no results appear.
Search for global category:'discourse hub' - no results appear.
Search for global category:"discourse hub" - 11 results appear.
Search for global category:discourse_hub - 11 results appear.

There is nothing in the search help to state double quotes or an underscore are required.

Yeah category names with spaces are problematic. We should include an example of a search using a category with space in it, in the current help copy, perhaps @techapj can update it?

3 Likes

Okay, I added an example for category name with space.

https://github.com/discourse/discourse/commit/5a7831265afc01d83750843311f02c319fc3a84a

5 Likes