# Search of category and user should return results

**URL:** <https://meta.discourse.org/t/search-of-category-and-user-should-return-results/29752>\
**Category:** Bug\
**Created:** [2015年六月8日 01:47 UTC](https://meta.discourse.org/t/search-of-category-and-user-should-return-results/29752 "2015-06-08T01:47:34Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![peternlewis](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/peternlewis/32/108888_2.png) [@peternlewis](https://meta.discourse.org/u/peternlewis)\
**Post date:** [2015年六月8日 01:47 UTC](https://meta.discourse.org/t/search-of-category-and-user-should-return-results/29752/1 "2015-06-08T01:47:34Z")

</div>

It seems that a search for nothing returns no result, and adding qualifiers like category and user still return nothing (this is related to the issues described at [Search sometimes tokenizes unique user names and some times does not](https://meta.discourse.org/t/search-sometimes-tokenizes-unique-user-names-and-some-times-does-not/25057/12)).

One of my forum users wants to see all their posts in a particular category, so they search for:

```
username:myname category:mycategory

```

but that fails because there is no match.

A lousy workaround is to search for:

```
username:myname category:mycategory mycategory

```

Since mycategory always appears (or appears to appear) in the search matches, this finds everything.

But it seems to me that the search system should accept a search of only options.

Thanks.

---

<div class="post-metadata">

**Author:** ![AmiAthena](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/amiathena/32/116030_2.png) [@AmiAthena](https://meta.discourse.org/u/AmiAthena)\
**Post date:** [2015年六月8日 02:04 UTC](https://meta.discourse.org/t/search-of-category-and-user-should-return-results/29752/2 "2015-06-08T02:04:08Z")

</div>

> [@peternlewis](#):
>
> One of my forum users wants t, see all their posts in a particular category

This can be done by searching for the username within a category.

 ![](https://global.discourse-cdn.com/meta/original/3X/5/7/5776b4d30974471162b221f28256aade61050c9d.jpg)

---

<div class="post-metadata">

**Author:** ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)\
**Post date:** [2015年六月8日 02:57 UTC](https://meta.discourse.org/t/search-of-category-and-user-should-return-results/29752/3 "2015-06-08T02:57:12Z")

</div>

Yeah, I plan to fix this it is a bug

---

<div class="post-metadata">

**Author:** ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)\
**Post date:** [2015年九月14日 22:24 UTC](https://meta.discourse.org/t/search-of-category-and-user-should-return-results/29752/4 "2015-09-14T22:24:09Z")

</div>

Been fixed for a while now 🙂

 ![](https://global.discourse-cdn.com/meta/original/3X/a/2/a263379786ccd824c9b499ac52a7d039678671d2.png)

---

<div class="post-metadata">

**Author:** ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)\
**Post date:** [2015年九月14日 22:24 UTC](https://meta.discourse.org/t/search-of-category-and-user-should-return-results/29752/5 "2015-09-14T22:24:12Z")

</div>


