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

TermFilteredPresearcher NPE issue with empty fields

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 8.6
    • None
    • None
    • New

    Description

      Encountered a situation where a document contained a field value which analyzed away to nothing. The result was a NPE in TermFilteredPresearher#buildQuery. We filter out purely empty fields before creating the Document forĀ  Monitor#match but it's hard to know up front when a non-empty field will produce zero tokens after analysis. Will follow up with a PR containing a simple unit test that triggers the NPE along with a proposed fix.

      Attachments

        Issue Links

          Activity

            People

              mdrob Mike Drob
              Marvin Justice Marvin Justice
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 50m
                  50m