[
https://issues.apache.org/jira/browse/SOLR-11555?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16221660#comment-16221660
]
David Smiley commented on SOLR-11555:
-------------------------------------
Very related: It's a shame that {{QParser.getQuery(...)}} and {{parse()}} can
return a null query. This leads to bugs since it's rare and this method
doesn't even document this possibility. Some call sites treat as the
equivalent as MatchAllDocsQuery (e.g. fq is one) while others treat as
equivalent to MatchAllDocsQuery (AnalyticsHandler one), and others will blow up
with NPE (e.g. BoolQParserPlugin, others).
> 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
> 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]