You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "David Smiley (JIRA)" <ji...@apache.org> on 2013/07/13 02:09:49 UTC

[jira] [Closed] (SOLR-5034) A facet.query analyzed to a null Query will NPE

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

David Smiley closed SOLR-5034.
------------------------------

    Resolution: Fixed
    
> A facet.query analyzed to a null Query will NPE
> -----------------------------------------------
>
>                 Key: SOLR-5034
>                 URL: https://issues.apache.org/jira/browse/SOLR-5034
>             Project: Solr
>          Issue Type: Bug
>          Components: SearchComponents - other
>    Affects Versions: 4.3.1
>            Reporter: David Smiley
>            Assignee: David Smiley
>             Fix For: 4.4
>
>         Attachments: SOLR-5034_facet_query_null_query.patch
>
>
> If you give a query to facet.query that analyzes down to a null Query, then it will NPE.  One way this can happen is when the text analysis filters out the token.
> {code}
> facet.query={!field f=lengthfilt}a
> {code}
> lengthfilt is a field in the test schema that has a min length of 2.

--
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-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Re: [jira] [Closed] (SOLR-5034) A facet.query analyzed to a null Query will NPE

Posted by Erik Hatcher <er...@gmail.com>.
Looks like this was not committed to the 4.4 branch.  Careful. 

    Erik

On Jul 12, 2013, at 20:09, "David Smiley (JIRA)" <ji...@apache.org> wrote:

> 
>     [ https://issues.apache.org/jira/browse/SOLR-5034?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
> 
> David Smiley closed SOLR-5034.
> ------------------------------
> 
>    Resolution: Fixed
> 
>> A facet.query analyzed to a null Query will NPE
>> -----------------------------------------------
>> 
>>                Key: SOLR-5034
>>                URL: https://issues.apache.org/jira/browse/SOLR-5034
>>            Project: Solr
>>         Issue Type: Bug
>>         Components: SearchComponents - other
>>   Affects Versions: 4.3.1
>>           Reporter: David Smiley
>>           Assignee: David Smiley
>>            Fix For: 4.4
>> 
>>        Attachments: SOLR-5034_facet_query_null_query.patch
>> 
>> 
>> If you give a query to facet.query that analyzes down to a null Query, then it will NPE.  One way this can happen is when the text analysis filters out the token.
>> {code}
>> facet.query={!field f=lengthfilt}a
>> {code}
>> lengthfilt is a field in the test schema that has a min length of 2.
> 
> --
> 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-unsubscribe@lucene.apache.org
> For additional commands, e-mail: dev-help@lucene.apache.org
> 

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