Uploaded image for project: 'Lucene - Core'
  1. Lucene - Core
  2. LUCENE-5869

FuzzyQuery should require positive maxExpansions

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.10, 6.0
    • Component/s: None
    • Labels:
      None
    • Lucene Fields:
      New

      Description

      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.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              rjernst Ryan Ernst
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: