[
https://issues.apache.org/jira/browse/SOLR-11555?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16221375#comment-16221375
]
Erick Erickson commented on SOLR-11555:
---------------------------------------
Fixing it at a lower level would certainly be preferable. I looked briefly at
another couple of classes and it seems that the same kind of problem is
possible in other places.
bq: how did this null query come to be
Guessing this is a rhetorical question, but answering anyway....
WordDelimiter(Graph)FilterFactory got a single term that was all punctuation
and removed them all. I don't know at this point whether an actual null was
returned as the token or an empty string and/or if this behavior changed.....
The test case exercises the situation though.
> 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]