-
Notifications
You must be signed in to change notification settings - Fork 639
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FuzzyQuery produces a wrong result when prefix is equal to the term length #941
Labels
Milestone
Comments
I just submitted my patch: |
tohidemyname
pushed a commit
to tohidemyname/lucenenet
that referenced
this issue
Jun 5, 2024
4 tasks
I fixed two bugs. To submit separate pull requests, I reverted my changes after I fixed a bug. I am unsure whether I wrongly close my pull request or not. I have submitted another pull request: |
paulirwin
pushed a commit
to paulirwin/lucene.net
that referenced
this issue
Oct 29, 2024
4 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is there an existing issue for this?
Describe the bug
When using FuzzyQuery the search string
bba
does not match doc valuebbab
with an edit distance of 1 and prefix length of 3.In FuzzyQuery an automaton is created for the "suffix" part of the search string which in this case is an empty string.
Expected Behavior
In this scenario maybe the FuzzyQuery should rewrite to a WildcardQuery of the following form :
where there's an appropriate number of ? characters according to the edit distance.
Steps To Reproduce
No response
Exceptions (if any)
No response
Lucene.NET Version
No response
.NET Version
No response
Operating System
No response
Anything else?
No response
The text was updated successfully, but these errors were encountered: