Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 5.1
    • 5.2, 6.0
    • modules/highlighter
    • None
    • 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

        1. postingshighlighter.patch
          1 kB
          Roman Khmelichek

        Activity

          Commit 1675965 from mikemccand in branch 'dev/trunk'
          [ https://svn.apache.org/r1675965 ]

          LUCENE-6449: fix NullPointerException when one segment is missing the highlighted field in its postings

          jira-bot ASF subversion and git services added a comment - Commit 1675965 from mikemccand in branch 'dev/trunk' [ https://svn.apache.org/r1675965 ] LUCENE-6449 : fix NullPointerException when one segment is missing the highlighted field in its postings

          Commit 1675966 from mikemccand in branch 'dev/branches/branch_5x'
          [ https://svn.apache.org/r1675966 ]

          LUCENE-6449: fix NullPointerException when one segment is missing the highlighted field in its postings

          jira-bot ASF subversion and git services added a comment - Commit 1675966 from mikemccand in branch 'dev/branches/branch_5x' [ https://svn.apache.org/r1675966 ] LUCENE-6449 : fix NullPointerException when one segment is missing the highlighted field in its postings

          Thanks Roman!

          mikemccand Michael McCandless added a comment - Thanks Roman!
          anshum Anshum Gupta added a comment -

          Bulk close for 5.2.0.

          anshum Anshum Gupta added a comment - Bulk close for 5.2.0.
          tomoko Tomoko Uchida added a comment -

          This issue was moved to GitHub issue: #7508.

          tomoko Tomoko Uchida added a comment - This issue was moved to GitHub issue: #7508 .

          People

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

            Dates

              Created:
              Updated:
              Resolved: