Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »
Q&A

Welcome to Codidact Meta!

Codidact Meta is the meta-discussion site for the Codidact community network and the Codidact software. Whether you have bug reports or feature requests, support questions or rule discussions that touch the whole network – this is the site for you.

Post History

75%
+4 −0
Q&A User search only finds names which begin with the search term

celtschk says in a comment that we could show all relevant results and help the searcher by sorting those results in a useful order: Another [way] to handle it would be to order the results by h...

posted 5mo ago by Michael‭

Answer
#1: Initial revision by user avatar Michael‭ · 2024-07-25T15:42:18Z (5 months ago)
[celtschk][] says [in a comment][comment] that we could _show_ all relevant results and help the searcher by _sorting_ those results in a useful order:

> Another [way] to handle it would be to order the results by how well the search term matches. The exact match, if it exists, should certainly be the top result. The score for the remaining maches could then be how much of the user name matches (when typing "tri", and there [exists] a username "trixie", that should come before "trichoplax"). Matches that come earlier in the user name could score higher (so the when searching "tri", "trixie" coms before "matrix". Also you could make search case insensitive, but score the results after matching case (so a search for "Tri" sorts "Trick" above "trial".
>
> Think about search engines: You don't mind getting thousands of hits if the hit you want is on the first page. And if it isn't, you are glad that you still can access further pages.

This makes sense to me. It sounds like the suggested order criteria are

- Result starts with match
- Result with shortest length
- Result case matches search

[celtschk]: https://meta.codidact.com/users/8056
[comment]: https://meta.codidact.com/comments/thread/9665#comment-24310