When I do a search with
user:AaronLS on stackoverflow.com the first post that comes up has nothing to do with my username. It is contained no where in the post, nor have I answered or commented on the post. I had tried something like this
user:AaronLS [flex] binding looking for a specific post, but this seemed to not give me anything relevant to what I searched for. Of course I can scroll through my profile and find the question but that gets annoying and it seems faster to google.
When I do a search with
I would ike to request that the tag on this be changed from bug to feature-request. I think there is room for improvement on this feature. (I can't make any edits to my original post because the edit screen contains a mod-only tag, and I regardless of whether I leave the tags as-is or try to change/remove them, they are stuck.)
Since the current behavior is by design and thus not a bug. I request that the design be changed to be more intuitive and user friendly using one of the following suggested options. Preferably 1, since I think it would make the user search feature much more useful.
Option 1) Make the "user:" search feature less constraining by allowing the supplied value to match either the user id or username. While matching on the username may give you results from multiple users with the same name, I think this would be much closer to what one would expect the behavior to be. Any other application I've ever used that had a user search was a search using the name, not a system generated surrogate key. Optionally, you could add a "username:" search if you want to ensure that someone searching by id using the existing user:1234 method will only get the user with that id, and not get someone who happens to have "1234" as their name.
Option 2) Keep current design where searching by username searches by the numeric identifier. But make the following modifications: 1.a) A username search should return no results if the string supplied does not match a user ID, such that searching with "AaronLS" would return no results since that is not even a numeric ID. 1.b) If no results are returned and the "user:" string was in the search, display a help message to indicate its proper usage, indicating that the user id, not the name, is required. Additionally, show a partial screenshot of a browser url of the userpage with the user id highlighted, or add the user id as an actual field on the user's profile page with the screenshot showing that highlighted. Since the majority of users have probably never been exposed to this numeric id, they probably will not know where to find it, much less know that it is the mysterious number in the URL of the profile page. The search tips page gives no indication of this, and from the example "user:1234" one might assume that "1234" is just a trivial example to be replaced by "BobsUserName", which would be a futile effort.
Option 3) If neither options 1 or 2 are viable/acceptable, then please consider that it is very confusing to return results when no match was found. If I search for "user:BobsName" and it doesn't match anyone's numeric id like "12345", then how do any results show up in the first place at all? If this is by-design, does this mean it is coded as
if no matches, then grab random results ? If so, please change it to
if no matches, then show no results)