In a discussion titled “Unexpected results in advanced search on ‘only return topics/posts’ and ‘In my messages’”, user filz reports confusion as a new Discourse user: they expected “In my messages” to be a subset of default search results, but found that private messages (PMs) are excluded unless explicitly selected. They propose either changing the behavior — perhaps to include PMs by default as suggested in meta.discourse.org/t/search-both-public-topics-and-pms-by-default/71017 — or improving the UI by separating “In my messages” into a distinct dropdown with clearer options like “excluded,” “included,” or “searched exclusively.” sam and Stephen express concern about mixing public and private content, especially since default inclusion could cause confusion or privacy issues. codinghorror strongly opposes including PMs by default, stating “Searching PMs should always be explicit.” filz agrees that explicit searching is correct but argues the current UI implies otherwise — the phrase “Only return topics/posts in my messages” is ambiguous, and not activating it doesn’t clearly mean “include PMs.” They suggest making the default (no PMs) more explicit. sam acknowledges the wording is poor but warns against a complex dropdown, noting only two supported modes exist: search PMs or search non-PMs. The core issue remains UI clarity versus privacy safety.
As a new user of discourse I expect the search results of “In my messages” to be a subset of the default search. Instead, messages are not found when “In my messages” is not activated.
I think we should change the presentation or the behaviour to match the expectations. I guess the main problem is the mix between the definition of the searched set (topics/messages) and the applied search filters.
An alternative behaviour is already mentioned in Searching public topics and PMs simultaneously and set this option as the default.
An alternative presentation could be to split “In my messages” from “Only return topics/posts…” to a separate drop-down list:
Where messages are
** excluded
** included
** searched exclusively
Especially when it’s a change. I’m occasionally sent screenshots of searches as part of queries. Including PMs in results by default there would be fairly problematic.
Yes, and not searching them is a good default, but the current presentation of the search options suggests something else to me (and maybe to other new users as well) . I’m proposing that not searching the PMs should be visible explicitly.
When the option “Only return topics/posts… In my messages” is activated, everything is fine.
But does not activating mean the opposite? What is the opposite of “Only return topics/posts… In my messages”?
Obviously it is “Not only return topics/posts… In my messages”. But does that mean “return topics/posts including my messages”?
That is what I expected. Maybe I just get it wrong