Ryan Ernst created LUCENE-5869:
----------------------------------

             Summary: 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


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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to