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

NPE in QueryRescorer when Scorer is null

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 4.8
    • 4.9, 6.0
    • None
    • None
    • 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
          4 kB
          Joel Bernstein
        2. LUCENE-5682.patch
          3 kB
          Joel Bernstein
        3. LUCENE-5682.patch
          3 kB
          Joel Bernstein

        Activity

          People

            jbernste Joel Bernstein
            jbernste Joel Bernstein
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: