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

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 4.0, 4.1
    • Fix Version/s: 4.2, 6.0
    • Component/s: modules/other
    • Labels:
      None
    • Lucene Fields:
      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

            • Assignee:
              Unassigned
              Reporter:
              simonw Simon Willnauer
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: