Can no longer search by user in current category outside of advanced search

AI-generated summary

The discussion is about a missing feature in the current search functionality, specifically the ability to search by username within a category. seanblue requested this feature, which sam acknowledged as legitimate and noted that the developer, Penar, will review it upon his return.

pmusaraj explained that this feature never existed and would be tricky to implement due to the use of special characters like @ and #. However, he suggested that it’s doable and provided a workaround by combining special characters.

seanblue responded, recalling a previous conversation about this topic and expressing his preference for the old search version, which allowed for easier toggling between contextual and global searches. He also noted that the current topic search partly works when searching for text with a username, but not when searching for a username with text.

The discussion concludes with seanblue acknowledging the complexity of the issue and the need for a simple solution, suggesting that separating the contextual/global toggle again could be a possible approach.

I think this existed before and disappeared, but if this actually never existed please move to Contribute > Feature.


Basically, these two options (in current category / in all topics and posts):

Should also appear when searching by username (with or without accompanied text). Notice that only the “all topics and posts” version works in that case (even though it doesn’t say so).

4 Likes

This is a legit feature request, let’s wait for Penar to get back from his break and he can respond with his thoughts. I think it is kind of deliberate in that he did not want to overload the UI.

(I set myself a bookmark reminder for next week)

3 Likes

Sorry need to wait one more week here setting another reminder

I am pretty sure this never existed. It’s a reasonable request, but it is quite tricky to get right when using the special characters (@ and #). Without special characters, there are only two possible results for the search: the current category or everything. With the @ character, we make a query for usernames matching the string after the @, so in many cases there will be many results:

So, for the requested behaviour, we would need to detect when the user search returns only one result and then show the contextual options (in current category / everywhere) if you are in a context. It’s certainly doable.

In the meantime you can currently combine special characters, so if you wanted to search for a string in the category Feature by user seanblue, you could type:

1 Like

Ah, I vaguely remember having this conversation before… I think my big problem here is that the old version of search (with the checkbox to toggle searching in the current context versus globally) was able to handle this. In a sense, that simpler and less pretty version was more powerful, because you could easily toggle the context no matter what you were searching for. That’s one of the two reasons I liked the old version better, despite the new version looking nicer. (The second reason being that Enter now defaults to global search, but 90% of the time I want to do contextual search.)

It looks like it already works when searching just for an exact username, specifically when searching the current topic.

Doesn’t work on the category page though.

In general though, I think it would be good to support as much as possible when there is an exact match. It may be easy to add #contribute:feature as you suggested, but searching in the current topic is less straightforward. I just noticed that searching some text @seanblue in the current topic works, but searching @seanblue some text doesn’t. So I guess the current topic bit does partly work at least.

Anyway, everything I just wrote was kind of steam of consciousness. I haven’t really thought though the whole picture beyond “it would be nice if it always worked”. Besides separating out the contextual/global toggle again like the checkbox used to do, I don’t have any ideas for how to handle this simply in all cases.

2 Likes