Repository navigation
[Bug] Fix FTS not matching certain queries in Czech language - #421
Merged
Conversation
…h OR operator for variants with and without trailing wildcard
…onstructs the expected pattern
… of equality to address new Lucene query format
ledsoft
requested changes
Aug 31, 2026
ledsoft
left a comment
Contributor
There was a problem hiding this comment.
Works fine, just please address the micro-optimization attempt comment.
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.
kbss-cvut/termit-ui#835
Word
lokalitais indexed by Lucene after processing (stemming) aslokalitWildcard query
term*instructs Lucene to perform prefix matching on indexed terms. There is no further processing of the queried term. The prefix is being matched as specified by the query.The query
lokalit*yields results as expected because the query matches indexed terms with the given prefix.The query
lokalita*yields no results because there is simply no indexed term with the given prefix.This PR updates the Lucene query construction to use the format
(+term) OR (+term*).+termallows Lucene to perform its text processing+term*keeps the prefix matchingWhen there are multiple terms, the query is constructed as
(+a +b +c) AND ((+term) OR (+term*))