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

FuzzyLikeThisQuery fails if field does not exist or is not indexed with NPE during rewrite

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 4.0, 4.1
    • 4.2, 6.0
    • modules/other
    • None
    • New, Patch Available

    Description

      this occured here: https://github.com/elasticsearch/elasticsearch/issues/2690

       at org.apache.lucene.sandbox.queries.SlowFuzzyTermsEnum$LinearFuzzyTermsEnum.<init>(SlowFuzzyTermsEnum.java:89)
          at org.apache.lucene.sandbox.queries.SlowFuzzyTermsEnum.maxEditDistanceChanged(SlowFuzzyTermsEnum.java:58)
          at org.apache.lucene.search.FuzzyTermsEnum.bottomChanged(FuzzyTermsEnum.java:211)
          at org.apache.lucene.search.FuzzyTermsEnum.<init>(FuzzyTermsEnum.java:144)
          at org.apache.lucene.sandbox.queries.SlowFuzzyTermsEnum.<init>(SlowFuzzyTermsEnum.java:48)
          at org.apache.lucene.sandbox.queries.FuzzyLikeThisQuery.addTerms(FuzzyLikeThisQuery.java:209)
          at org.apache.lucene.sandbox.queries.FuzzyLikeThisQuery.rewrite(FuzzyLikeThisQuery.java:262)
      

      Attachments

        1. LUCENE-4809.patch
          3 kB
          Simon Willnauer

        Activity

          People

            Unassigned Unassigned
            simonw Simon Willnauer
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: