# Advanced search issues where category name contains a space

**URL:** https://meta.discourse.org/t/advanced-search-issues-where-category-name-contains-a-space/36087
**Category:** Bug
**Tags:** search
**Created:** [11월 27, 2015, 1:58오후 UTC](https://meta.discourse.org/t/advanced-search-issues-where-category-name-contains-a-space/36087 "2015-11-27T13:58:51Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![TechnoBear](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/technobear/32/40546_2.png) [@TechnoBear](https://meta.discourse.org/u/TechnoBear)
#### Post date: [11월 27, 2015, 1:58오후 UTC](https://meta.discourse.org/t/advanced-search-issues-where-category-name-contains-a-space/36087/1 "2015-11-27T13:58:51Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [11월 27, 2015, 8:02오후 UTC](https://meta.discourse.org/t/advanced-search-issues-where-category-name-contains-a-space/36087/2 "2015-11-27T20:02:59Z")

</div>

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?

---

<div class="post-metadata">

### Author: ![techAPJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/techapj/32/342990_2.png) [@techAPJ](https://meta.discourse.org/u/techAPJ)
#### Post date: [11월 28, 2015, 8:39오후 UTC](https://meta.discourse.org/t/advanced-search-issues-where-category-name-contains-a-space/36087/3 "2015-11-28T20:39:26Z")

</div>

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

[https://github.com/discourse/discourse/commit/5a7831265afc01d83750843311f02c319fc3a84a](https://github.com/discourse/discourse/commit/5a7831265afc01d83750843311f02c319fc3a84a)

---

<div class="post-metadata">

### Author: ![tgxworld](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tgxworld/32/106117_2.png) [@tgxworld](https://meta.discourse.org/u/tgxworld)
#### Post date: [12월 7, 2015, 12:38오후 UTC](https://meta.discourse.org/t/advanced-search-issues-where-category-name-contains-a-space/36087/4 "2015-12-07T12:38:37Z")

</div>


