Issue with advanced search when scoping to messages I posted

AI-generated summary

The discussion revolves around an issue with advanced search in Discourse when scoping to messages the user has posted. AndreaPi AndreaPi reported that searching for posts by a certain user in topics they have posted in returns 0 hits, despite the user having posted answers in many of their topics. jomaxro jomaxro and codinghorror codinghorror reproduced the issue and found that the in:posted filter doesn’t work as expected.

According to zogstrip zogstrip, the in:posted filter is used to search within the user’s own posts, not topics they have posted in. codinghorror codinghorror clarified the confusion, explaining that the filter is being interpreted incorrectly.

AndreaPi AndreaPi then asked how to achieve the desired search using advanced search, and codinghorror codinghorror suggested using the Data Explorer plugin as the query is unusual.

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:

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 Search results for '@codinghorror in:posted' - Discourse Meta returns 0 results.

5 Likes

That filter is used to search in your posts

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

2 Likes

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