[ https://issues.apache.org/jira/browse/SOLR-3783?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Hoss Man updated SOLR-3783: --------------------------- Attachment: SOLR-3783.patch Thanks for reporting this Tanguy, The NPE is definitely bad, a pretty clear oversight in the pivot facet code - fixing it doesn't seem to be that hard. patch includes test updated tests (which also fixes what appeared to be a mistake in the test -- comment suggested it was checking data about the second pivot but it was still checking hte first) > Facet pivots produces NPE when facet.missing is turned on > --------------------------------------------------------- > > Key: SOLR-3783 > URL: https://issues.apache.org/jira/browse/SOLR-3783 > Project: Solr > Issue Type: Bug > Components: SearchComponents - other > Reporter: Tanguy Moal > Priority: Minor > Attachments: SOLR-3783.patch > > > We get an http 500 as follow : > {code:xml} > <lst name="error"> > <str name="trace">java.lang.NullPointerException</str> > <int name="code">500</int> > </lst> > {code} > When facet.missing is turned on and combined with facet.pivot (if one of the > pivot-faceted fields have missing counts ^-^) > Ideally, the decission tree could be computing for the missing "entries" > using the {noformat} -field:[* TO *] {noformat} query but it might be a > performance issue on a large index (I guess) > The fallback to this could be to raise a 400 error with a clean message > telling that both parameters can't be combined and then the documentation > should be modified accordingly. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org