Skip to content

[stable-24.0] Issue 6170 further improve search results order#6259

Merged
mahibi merged 3 commits into
stable-24.0from
backport/6256/stable-24.0
May 29, 2026
Merged

[stable-24.0] Issue 6170 further improve search results order#6259
mahibi merged 3 commits into
stable-24.0from
backport/6256/stable-24.0

Conversation

@backportbot
Copy link
Copy Markdown

@backportbot backportbot Bot commented May 29, 2026

Backport of PR #6256

rapterjet2004 and others added 3 commits May 29, 2026 13:35
Signed-off-by: rapterjet2004 <juliuslinus1@gmail.com>
Replace the custom processOrderAndAdd helper and its pattern-based
predicates with plain forEach iteration, letting the server-returned
order stand. The previous implementation had variable shadowing,
an inconsistent regex for contacts (\s* instead of \b), and
duplicated the word-boundary pattern three times.

AI-assistant: Claude Code v2.1.142 (Claude Sonnet 4.6)
Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
Introduce sortedByMatchQuality to rank results within each section:
exact title match first, then prefix (starts-with), then whole-word
(\b), then substring — with 1-on-1 conversations ranked above groups
within each tier and match position as a final tiebreaker.

AI-assistant: Claude Code v2.1.142 (Claude Sonnet 4.6)
Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
@backportbot backportbot Bot requested a review from mahibi May 29, 2026 13:35
@backportbot backportbot Bot added the 3. to review Waiting for reviews label May 29, 2026
@backportbot backportbot Bot added this to the 24.0.0 milestone May 29, 2026
@mahibi mahibi merged commit fd53202 into stable-24.0 May 29, 2026
8 of 15 checks passed
@mahibi mahibi deleted the backport/6256/stable-24.0 branch May 29, 2026 13:38
@github-actions
Copy link
Copy Markdown
Contributor

Codacy

Lint

TypemasterPR
Warnings8792
Errors05

SpotBugs

CategoryBaseNew
Bad practice66
Correctness1111
Dodgy code5252
Internationalization33
Malicious code vulnerability33
Performance55
Security11
Total8181

Lint increased!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Waiting for reviews

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants