lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hoss Man (JIRA)" <>
Subject [jira] [Updated] (SOLR-3783) Facet pivots produces NPE when facet.missing is turned on
Date Thu, 20 Sep 2012 00:17:07 GMT


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:
>             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:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message