Skip to content

[Bug] eCurrency: search results doesn't sorted by query relevance #708

@krivtsova-arina

Description

@krivtsova-arina

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:

  1. Exact matches
  2. Prefix matches
  3. Partial matches

(e.g. “Arina” should appear above unrelated names for query ari).

Supporting Media

How it looks in UI:

Image

Desktop:

  • Device: any
  • OS: any
  • Browser: any

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

Status

Todo

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions