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

TermFilteredPresearcher NPE issue with empty fields

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 8.6
    • Component/s: None
    • Labels:
      None
    • Lucene Fields:
      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

          Activity

            People

            • Assignee:
              mdrob Mike Drob
              Reporter:
              Marvin Justice Marvin Justice

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

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

                  Issue deployment