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

NullPointerException in PostingsHighlighter

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.1
    • Fix Version/s: 5.2, 6.0
    • Component/s: modules/highlighter
    • Labels:
      None
    • Lucene Fields:
      New, Patch Available

      Description

      In case an index segment does not have any docs with the field requested for highlighting indexed, there should be a null check immediately following this line (in PostingsHighlighter.java):
      Terms t = r.terms(field);

      Looks like the null check was moved in the 5.1 release and this is occasionally causing a NullPointerException in my near-realtime searcher.

        Attachments

          Activity

            People

            • Assignee:
              mikemccand Michael McCandless
              Reporter:
              rkhmelichek Roman Khmelichek
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: