Issue with advanced search when scoping to messages I posted

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:

https://community.rstudio.com/search?expanded=true&q=%40mara%20%20in%3Aposted

This advanced search feature was introduced last year:

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

4 Likes

Can you repro this @jomaxro?

2 Likes

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 https://meta.discourse.org/search?expanded=true&q=%40codinghorror%20in%3Aposted returns 0 results.

4 Likes

That filter is used to search in your posts

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

1 Like

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”.

1 Like

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

You might need to use the Data Explorer plugin for that. It’s kind of an unusual query.

2 Likes