You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@lucene.apache.org by "Mike Drob (Jira)" <ji...@apache.org> on 2020/03/27 21:53:00 UTC
[jira] [Resolved] (LUCENE-9133) TermFilteredPresearcher NPE issue
with empty fields
[ https://issues.apache.org/jira/browse/LUCENE-9133?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Mike Drob resolved LUCENE-9133.
-------------------------------
Fix Version/s: 8.6
Assignee: Mike Drob
Resolution: Fixed
Thanks for the patch, Marvin!
I updated the commit message to include the Jira issue and added an entry to CHANGES, then pushed to branch_8x and master!
> 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
> Assignee: Mike Drob
> Priority: Major
> Fix For: 8.6
>
> Time Spent: 0.5h
> Remaining Estimate: 0h
>
> 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