You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@lucene.apache.org by "Marvin Justice (Jira)" <ji...@apache.org> on 2020/01/13 22:36:00 UTC
[jira] [Created] (LUCENE-9133) TermFilteredPresearcher NPE issue
with empty fields
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-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org