You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucenenet.apache.org by "tohidemyname (via GitHub)" <gi...@apache.org> on 2024/06/04 04:41:06 UTC
[I] FuzzyQuery produces a wrong result when prefix is equal to the term length [lucenenet]
tohidemyname opened a new issue, #941:
URL: https://github.com/apache/lucenenet/issues/941
### Is there an existing issue for this?
- [X] I have searched the existing issues
### Describe the bug
When using FuzzyQuery the search string `bba` does not match doc value `bbab` 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 :
searchString + "?"
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_
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@lucenenet.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] FuzzyQuery produces a wrong result when prefix is equal to the term length [lucenenet]
Posted by "tohidemyname (via GitHub)" <gi...@apache.org>.
tohidemyname commented on issue #941:
URL: https://github.com/apache/lucenenet/issues/941#issuecomment-2146602730
I just submitted my patch:
https://github.com/apache/lucenenet/pull/942/commits
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@lucenenet.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] FuzzyQuery produces a wrong result when prefix is equal to the term length [lucenenet]
Posted by "tohidemyname (via GitHub)" <gi...@apache.org>.
tohidemyname commented on issue #941:
URL: https://github.com/apache/lucenenet/issues/941#issuecomment-2148621917
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:
https://github.com/apache/lucenenet/pull/945
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@lucenenet.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] FuzzyQuery produces a wrong result when prefix is equal to the term length [lucenenet]
Posted by "paulirwin (via GitHub)" <gi...@apache.org>.
paulirwin closed issue #941: FuzzyQuery produces a wrong result when prefix is equal to the term length
URL: https://github.com/apache/lucenenet/issues/941
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@lucenenet.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org