# "Advanced Search" for private messages not triggering properly

**URL:** <https://meta.discourse.org/t/advanced-search-for-private-messages-not-triggering-properly/87374>\
**Category:** Bug\
**Created:** [May 13, 2018, 4:38pm UTC](https://meta.discourse.org/t/advanced-search-for-private-messages-not-triggering-properly/87374 "2018-05-13T16:38:14Z")\
**Posts on this page:** 1\
**Showing post:** 2

<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:** [May 30, 2018, 9:45am UTC](https://meta.discourse.org/t/advanced-search-for-private-messages-not-triggering-properly/87374/2 "2018-05-30T09:45:37Z")

</div>

> [@jerry0](#):
>
> the search term being applied in the search box is “private\_messages:{username}”

That search term/filter works too, it filters to personal messages so the functionality is not broken.

> [@jerry0](#):
>
> whereas the search term applied when you tick the corresponding advanced search option (“Only return topics/posts… In my messages”) is “in:private”

> [@jerry0](#):
>
> when you search from Messages page and click “Search messages” tickbox, Advanced Search opens up with the correct search selection applied

I agree that this is more accurate and what the end user expects. Done in:

[https://github.com/discourse/discourse/commit/704cca3de25f1e58f9561100aeebf9cc6989301a](https://github.com/discourse/discourse/commit/704cca3de25f1e58f9561100aeebf9cc6989301a)

Thanks for bringing this in our notice. 👍

---

_[View the full topic](https://meta.discourse.org/t/advanced-search-for-private-messages-not-triggering-properly/87374)._
