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

FuzzyQuery should require positive maxExpansions

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 4.10, 6.0
    • None
    • None
    • 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

        1. LUCENE-5869.patch
          3 kB
          Ryan Ernst

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: