# Problème avec la recherche avancée lors du filtrage sur mes messages

**URL:** https://meta.discourse.org/t/issue-with-advanced-search-when-scoping-to-messages-i-posted/104124
**Category:** Feature
**Created:** [Décembre 12, 2018, 5:09 UTC](https://meta.discourse.org/t/issue-with-advanced-search-when-scoping-to-messages-i-posted/104124 "2018-12-12T17:09:55Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![AndreaPi](https://avatars.discourse-cdn.com/v4/letter/a/ed655f/32.png) [@AndreaPi](https://meta.discourse.org/u/AndreaPi)
#### Post date: [Décembre 12, 2018, 5:09 UTC](https://meta.discourse.org/t/issue-with-advanced-search-when-scoping-to-messages-i-posted/104124/1 "2018-12-12T17:09:55Z")

</div>

Hi,

when searching for posts by a certain user, in topics to which I have posted, the advanced search returns 0 hits, even though this user has posted answers in many of my topics. This is happening on the RStudio community, which uses Discourse:

> **[Search results for '@mara in:posted' - Posit Community](https://forum.posit.co/search?expanded=true&q=%40mara%20%20in%3Aposted)**
>
> A community for all things Posit

This advanced search feature was introduced last year:

> [@Advanced search: posts that I have seen](https://meta.discourse.org/t/advanced-search-posts-that-i-have-seen/57966):
>
> How about adding the possibility in advanced search to limit the search to “posts/topics that I have seen”? Need I explain? I guess we have all been there: “Where is that post about X that I saw the other day?”…

I would have posted in that topic, but I can’t because it’s now closed, so I’m opening a new one. Thanks for your attention and for this wonderful platform,

Andrea

---

<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: [Décembre 13, 2018, 12:13 UTC](https://meta.discourse.org/t/issue-with-advanced-search-when-scoping-to-messages-i-posted/104124/2 "2018-12-13T00:13:00Z")

</div>

Can you repro this @jomaxro?

---

<div class="post-metadata">

### Author: ![jomaxro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jomaxro/32/126216_2.png) [@jomaxro](https://meta.discourse.org/u/jomaxro)
#### Post date: [Décembre 13, 2018, 3:29 UTC](https://meta.discourse.org/t/issue-with-advanced-search-when-scoping-to-messages-i-posted/104124/3 "2018-12-13T03:29:02Z")

</div>

Yep, this isn’t working (or the `in:posted` filter doesn’t do what we think it does). @codinghorror and I have posted in many of the same topics, yet [Search results for '@codinghorror in:posted' - Discourse Meta](https://meta.discourse.org/search?expanded=true&q=%40codinghorror%20in%3Aposted) returns 0 results.

---

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [Décembre 14, 2018, 9:45 UTC](https://meta.discourse.org/t/issue-with-advanced-search-when-scoping-to-messages-i-posted/104124/4 "2018-12-14T21:45:12Z")

</div>

> [@jomaxro](#):
>
> (or the `in:posted` filter doesn’t do what we think it does).

That filter is used to search _in_ your posts

> <https://github.com/discourse/discourse/blob/430083019dcdca0c1c04de4b2f797e71a52b77f0/lib/search.rb#L326>

---

<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: [Décembre 14, 2018, 10:51 UTC](https://meta.discourse.org/t/issue-with-advanced-search-when-scoping-to-messages-i-posted/104124/5 "2018-12-14T22:51:02Z")

</div>

So that is the confusion. This is being interpreted as “search all topics I posted in” when in reality it means “search all my posts”.

---

<div class="post-metadata">

### Author: ![AndreaPi](https://avatars.discourse-cdn.com/v4/letter/a/ed655f/32.png) [@AndreaPi](https://meta.discourse.org/u/AndreaPi)
#### Post date: [Décembre 15, 2018, 9:17 UTC](https://meta.discourse.org/t/issue-with-advanced-search-when-scoping-to-messages-i-posted/104124/6 "2018-12-15T09:17:39Z")

</div>

Ok. So which advanced search would allow me to all posts by User X, in topics in which I posted? Or, if this isn’t possible, all my posts, in topics opened by User X? Thanks

---

<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: [Décembre 15, 2018, 10:44 UTC](https://meta.discourse.org/t/issue-with-advanced-search-when-scoping-to-messages-i-posted/104124/7 "2018-12-15T10:44:20Z")

</div>

You might need to use the [Data Explorer](https://meta.discourse.org/t/32566?silent=true) plugin for that. It’s kind of an unusual query.
