-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update file-search to prioritize exact and better fuzzy matches
Fixes #5636 - fixes an issue where better file results were not being displayed by the file-search due to the limit. The limit meant that if we ever reached the quota of results allowed some better results were never to be displayed. Instead, the logic was changed so that fuzzy matches are sorted by their score (how well they match the `searchPattern`), then are sent to the front end limited by the option. This means that all possible exact matches are sent and the remaining best fuzzy matches along with them until the limit is reached. Signed-off-by: Vincent Fugnitto <vincent.fugnitto@ericsson.com>
- Loading branch information
1 parent
37c9659
commit 6f431ce
Showing
2 changed files
with
38 additions
and
4 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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