You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@lucene.apache.org by "ASF subversion and git services (Jira)" <ji...@apache.org> on 2020/06/03 20:20:00 UTC
[jira] [Commented] (LUCENE-9365) Fuzzy query has a false negative
when prefix length == search term length
[ https://issues.apache.org/jira/browse/LUCENE-9365?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17125284#comment-17125284 ]
ASF subversion and git services commented on LUCENE-9365:
---------------------------------------------------------
Commit 45611d0647b860700e2ebd52c7c4695027c5c890 in lucene-solr's branch refs/heads/master from Mike Drob
[ https://gitbox.apache.org/repos/asf?p=lucene-solr.git;h=45611d0 ]
LUCENE-9365 FuzzyQuery false negative when prefix length == search term length (#1545)
Co-Authored-By: markharwood <ma...@gmail.com>
> 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
> Time Spent: 20m
> Remaining Estimate: 0h
>
> 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-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org