Marvin Justice created LUCENE-9133:
--------------------------------------

             Summary: TermFilteredPresearcher NPE issue with empty fields
                 Key: LUCENE-9133
                 URL: https://issues.apache.org/jira/browse/LUCENE-9133
             Project: Lucene - Core
          Issue Type: Bug
            Reporter: Marvin Justice


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.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org
For additional commands, e-mail: issues-h...@lucene.apache.org

Reply via email to