Skip to content

match interior words exactly in short query#1060

Open
henrik242 wants to merge 1 commit intokomoot:masterfrom
entur:henrik/short-query-name-ngram-match
Open

match interior words exactly in short query#1060
henrik242 wants to merge 1 commit intokomoot:masterfrom
entur:henrik/short-query-name-ngram-match

Conversation

@henrik242
Copy link
Copy Markdown
Contributor

For a doc "Marikoven Pøylo", the query "pøylo" returned nothing - instead finding a 1-edit-away "Pøyso" at another location. That fuzzy hit kept the first query non-empty, so the lenient retry that would have found "pøylo" via the interior-word index never ran.

Add a should-clause that exact-matches the interior-word index for queries of 5 chars or more. Boost 0.5 keeps it below the regular prefix match but above the lenient fuzzy fallback.

For a doc "Marikoven Pøylo", the query "pøylo" returned nothing -
instead finding a 1-edit-away "Pøyso" at another location. That fuzzy
hit kept the first query non-empty, so the lenient retry that would
have found "pøylo" via the interior-word index never ran.

Add a should-clause that exact-matches the interior-word index for
queries of 5 chars or more. Boost 0.5 keeps it below the regular
prefix match but above the lenient fuzzy fallback.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant