You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Robert Muir (JIRA)" <ji...@apache.org> on 2015/02/26 21:55:06 UTC
[jira] [Resolved] (LUCENE-6298) empty SimpleQueryParser query
should return empty BooleanQuery
[ https://issues.apache.org/jira/browse/LUCENE-6298?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Robert Muir resolved LUCENE-6298.
---------------------------------
Resolution: Fixed
Fix Version/s: 5.1
Trunk
Thanks Lee!
> empty SimpleQueryParser query should return empty BooleanQuery
> --------------------------------------------------------------
>
> Key: LUCENE-6298
> URL: https://issues.apache.org/jira/browse/LUCENE-6298
> Project: Lucene - Core
> Issue Type: Bug
> Components: modules/queryparser
> Affects Versions: 5.0
> Reporter: Lee Hinman
> Priority: Minor
> Fix For: Trunk, 5.1
>
> Attachments: LUCENE-6298.patch, LUCENE-6298.patch
>
>
> In order to be consistent with QueryParser, SimpleQueryParser should return an empty BooleanQuery instead of null when the analyzed query state is null (if the query text is entirely removed during analysis, for instance).
> Long term it would also be nice to be able to return a MatchNoDocsQuery (or something like that) instead of using null as a stand-in value for this.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org