Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Null pointer exception for POST mode facets if facet_filter accepts no documents #3479
From the JavaDoc for Filter:
So, the filteredSet object can be null. It is then passed into the constructor of the AndDocIdSet, which can cause a null pointer exception during the execution of the POST facet.
The solution is that if filteredSet is null then the current ContextDocIdSet can be ignored.
I replicated this issue with the following query (where the filter facet does match a term in the index, but the facet filter does not):