You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Michael McCandless (JIRA)" <ji...@apache.org> on 2014/08/05 10:11:12 UTC
[jira] [Commented] (LUCENE-5869) FuzzyQuery should require positive
maxExpansions
[ https://issues.apache.org/jira/browse/LUCENE-5869?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14085976#comment-14085976 ]
Michael McCandless commented on LUCENE-5869:
--------------------------------------------
+1
> FuzzyQuery should require positive maxExpansions
> ------------------------------------------------
>
> Key: LUCENE-5869
> URL: https://issues.apache.org/jira/browse/LUCENE-5869
> Project: Lucene - Core
> Issue Type: Bug
> Reporter: Ryan Ernst
> Attachments: LUCENE-5869.patch
>
>
> FuzzyQuery currently only disallows negative values of {{maxExpansions}}. However, passing {{0}} causes an NPE when the underlying {{TopTermsRewrite}} does a {{peek()}} on an empty queue, which returns {{null}}, and then goes on using it unknowingly.
--
This message was sent by Atlassian JIRA
(v6.2#6252)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org