Description
The /api/users/search endpoint doesn't sort search results by relevance to the query.
For example, when searching with q=ari, exact or prefix matches (e.g. ‘Arina’) are ranked lower than partial substring matches where the query occurs in the middle or at the end of the name, indicating missing or incorrect relevance-based sorting.
This makes search results less useful.
Expected behavior
Search results should be sorted by relevance, prioritizing:
- Exact matches
- Prefix matches
- Partial matches
(e.g. “Arina” should appear above unrelated names for query ari).
Supporting Media
How it looks in UI:
Desktop:
- Device: any
- OS: any
- Browser: any