Boost exact-character matches over ASCII-folded matches#1026
Draft
henrik242 wants to merge 1 commit intokomoot:masterfrom
Draft
Boost exact-character matches over ASCII-folded matches#1026henrik242 wants to merge 1 commit intokomoot:masterfrom
henrik242 wants to merge 1 commit intokomoot:masterfrom
Conversation
Add a non-folded raw sub-field on collector.name that indexes names with only lowercasing. Boosted should clauses in search queries reward documents whose unfolded name matches the query, so that e.g. searching "Lærdal" ranks "Lærdal" above "Lardal" while preserving broad recall.
Collaborator
|
This only solves the issue on the full names, not during search-as-you-type (try searching for In general, a second index is only required, when the expected results don't show up at all in the result list. If it is a more a matter of in which order the results are shown, then reranking results is the cheaper approach. |
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.
Summary
Behavior
No existing behaviour changes. german_normalization is left in place. The raw field only adds score - it never removes matches.
Test plan