[
https://issues.apache.org/jira/browse/SOLR-11672?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Cassandra Targett updated SOLR-11672:
-------------------------------------
Component/s: faceting
> NPE in FacetComponent countFacets()
> -----------------------------------
>
> Key: SOLR-11672
> URL: https://issues.apache.org/jira/browse/SOLR-11672
> Project: Solr
> Issue Type: Bug
> Security Level: Public(Default Security Level. Issues are Public)
> Components: faceting, search
> Affects Versions: 6.1.1
> Reporter: Andreas Schaefer
> Priority: Major
>
> I have a SOLR installation with two shards and this Facet Query configuration:
> <lst name="invariants">
> <str name="facet.query">{!key="$0 - $50"}price_d:[* TO 50]</str>
> ....
> </lst>
> When I run a query and the first shard returns a facet count less than the
> minimum count then it will remove that Facet Query from the list
> FacetInfo.queryFacets map in the method: removeQueryFacetsUnderLimits(). When
> the Facet Component is handled for the second shard the get() on
> FacetInfo.queryFacets will return null (entry was removed) and the subsequent
> call to qf.count() is throwing an NPE.
> This code will fix the NPE but in my opinion the removal of the Query Facets
> should be moved to finishStage() method in order to make sure that
> countFacets() works w/o an NPE.
> This issue was previously reported under 2803 as far as I understand it.
> I am working on the 6.1.0-SNAPSHOT code base but looking at the latest code
> this still seems to be an issue.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]