[
https://issues.apache.org/jira/browse/SOLR-11555?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16221412#comment-16221412
]
Yonik Seeley commented on SOLR-11555:
-------------------------------------
bq. Guessing this is a rhetorical question
Not really... I don't recall seeing null queries come out of the lucene query
parser before, and there is code that should prevent that from happening.
SolrQueryParser.parse() has the following code:
{code}
return res!=null ? res : newBooleanQuery().build();
{code}
Which could prob be replaced with MatchNoDocsQuery these days...
> If the query terms reduce to nothing, filter(clause) produces an NPE whereas
> fq=clause does not
> -----------------------------------------------------------------------------------------------
>
> Key: SOLR-11555
> URL: https://issues.apache.org/jira/browse/SOLR-11555
> Project: Solr
> Issue Type: Bug
> Security Level: Public(Default Security Level. Issues are Public)
> Reporter: Erick Erickson
> Assignee: Yonik Seeley
> Priority: Minor
> Attachments: SOLR-11555.patch
>
>
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]