You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Yonik Seeley (JIRA)" <ji...@apache.org> on 2011/01/20 18:37:44 UTC

[jira] Updated: (SOLR-2325) faceting throws NPE if all q's and fq's excluded

     [ https://issues.apache.org/jira/browse/SOLR-2325?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Yonik Seeley updated SOLR-2325:
-------------------------------

    Attachment: SOLR-2325.patch

Here's a patch that fixes things up.
Reviewing the documentation, it looks like this wasn't actually a bug - in the past, only filters could be excluded.  Still, it makes sense to be able to exclude the main query too, and this is what this patch implements.

> faceting throws NPE if all q's and fq's excluded
> ------------------------------------------------
>
>                 Key: SOLR-2325
>                 URL: https://issues.apache.org/jira/browse/SOLR-2325
>             Project: Solr
>          Issue Type: Bug
>            Reporter: Yonik Seeley
>            Assignee: Yonik Seeley
>         Attachments: SOLR-2325.patch
>
>
> Example of a faceting request that produces a NPE
> http://localhost:8983/solr/select?q={!tag=zzz}foo&facet=true&facet.field={!ex=zzz}popularity

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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