[ 
https://issues.apache.org/jira/browse/LUCENE-9365?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17101769#comment-17101769
 ] 

Mark Harwood edited comment on LUCENE-9365 at 5/7/20, 3:18 PM:
---------------------------------------------------------------

Ignore last comment - I'm reverting that change because we can't fall back to a 
RegExp query with the user's search string without escaping it. It may contain 
illegal search syntax. Will re-think the approach and open another PR.


was (Author: markh):
Ignore last comment - I've reverting that change because we can't fall back to 
a RegExp query with the user's search string without escaping it. It may 
contain illegal search syntax. Will re-think the approach and open another PR.

> Fuzzy query has a false negative when prefix length == search term length 
> --------------------------------------------------------------------------
>
>                 Key: LUCENE-9365
>                 URL: https://issues.apache.org/jira/browse/LUCENE-9365
>             Project: Lucene - Core
>          Issue Type: Bug
>          Components: core/query/scoring
>            Reporter: Mark Harwood
>            Priority: Major
>
> 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.
> In this scenario maybe the FuzzyQuery should rewrite to a WildcardQuery of 
> the following form :
> {code:java}
>     searchString + "?" 
> {code}
> .. where there's an appropriate number of ? characters according to the edit 
> distance.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org
For additional commands, e-mail: issues-h...@lucene.apache.org

Reply via email to