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

NPE in QueryRescorer when Scorer is null

    Details

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

      Description

      While testing out the QueryRescorer I was getting an NPE on the scorer when using a TermQuery as the rescore query. Looks like a TermQuery will return a null Scorer if the term is not present in the index segment.

      Caused by: java.lang.NullPointerException
      [junit4] > at org.apache.lucene.search.QueryRescorer.rescore(QueryRescorer.java:89)

        Attachments

        1. LUCENE-5682.patch
          3 kB
          Joel Bernstein
        2. LUCENE-5682.patch
          3 kB
          Joel Bernstein
        3. LUCENE-5682.patch
          4 kB
          Joel Bernstein

          Activity

            People

            • Assignee:
              joel.bernstein Joel Bernstein
              Reporter:
              joel.bernstein Joel Bernstein
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: