Fix #6165: Improve global search relevance and add exact-field operators#6187
Merged
xet7 merged 1 commit intowekan:mainfrom Mar 16, 2026
Merged
Conversation
Member
|
What is point here with changes to translations? |
Contributor
Author
|
@xet7
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This PR addresses issue #6165 where the global card search was returning confusing or irrelevant results because it matched keywords in obscure fields (like comments and attachments) and treated them with the same weight as exact title matches.
To fix this, two major enhancements have been added:
Relevance Ranking on Global Search: Text searches now assign a _score to matching cards and sort them by relevance before serving them to the client. Matches in the Card Title are scored highest, followed by the Description, and then Custom Fields. This ensures the most visually relevant cards always appear first.
Precise Search Operators: Users can now search specific fields explicitly to narrow down their search and bypass global searching.
How to Test
Navigate to the global search bar.
Search for a generic keyword that exists in deeply nested comments/attachments as well as the title of a card.
Verify: The card with the keyword in the title is ordered visibly earlier/first in the results.
Try combining literal operators to narrow down matches:
title:"Exact Title Text"
description:keyword
attachment:filename
customfield:value
Fixes
Closes #6165