[ 
https://issues.apache.org/jira/browse/SOLR-8295?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15092768#comment-15092768
 ] 

Joel Bernstein commented on SOLR-8295:
--------------------------------------

Ah, this is already fixed. I was looking into a bug report today on the users 
list for 5.3.1. This bug was introduced in the 5x branch when the numeric 
docValues support was added. I suspect it took a long time to surface because 
many people are still using the 4x line of code. In the 4x line of code 
everything was based on a top level field cache which couldn't have this 
problem. I'll report back to the users list about this.

> collapse parser can trigger NPE when a segment has empty DocValues for 
> collapse field (ie: no doc in segment has a value)
> -------------------------------------------------------------------------------------------------------------------------
>
>                 Key: SOLR-8295
>                 URL: https://issues.apache.org/jira/browse/SOLR-8295
>             Project: Solr
>          Issue Type: Bug
>            Reporter: Steve Rowe
>            Assignee: Hoss Man
>             Fix For: 5.4, Trunk
>
>         Attachments: SOLR-8295.patch
>
>
> When collapsing on a field that doesn't exist for all documents, the 
> existence of a segment that does not contain any documents that have a value 
> can cause an NPE as the collapse parser assumes the DocValues for a segment 
> will always be non-null.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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

Reply via email to