[
https://issues.apache.org/jira/browse/LUCENE-3451?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13114385#comment-13114385
]
Mike Sokolov edited comment on LUCENE-3451 at 9/25/11 11:19 PM:
----------------------------------------------------------------
Just wondering if there is a reason not to "fix" the user's query by adding a
{noformat}*:*{noformat} (maybe implicitly), rather than throwing an Exception?
This is invariably the fix users are instructed to apply in this case, and it
does seem to be the logical implication of a pure not-query.
Hmm - I just found the discussion over in LUCENE-3460, which addresses this
point.
was (Author: sokolov):
Just wondering if there is a reason not to "fix" the user's query by adding
a {noformat}*:*{noformat} (maybe implicitly), rather than throwing an
Exception? This is invariably the fix users are instructed to apply in this
case, and it does seem to be the logical implication of a pure not-query.
> Remove special handling of pure negative Filters in BooleanFilter, disallow
> pure negative queries in BooleanQuery
> -----------------------------------------------------------------------------------------------------------------
>
> Key: LUCENE-3451
> URL: https://issues.apache.org/jira/browse/LUCENE-3451
> Project: Lucene - Java
> Issue Type: Bug
> Reporter: Uwe Schindler
> Assignee: Uwe Schindler
> Fix For: 4.0
>
> Attachments: LUCENE-3451.patch, LUCENE-3451.patch, LUCENE-3451.patch,
> LUCENE-3451.patch
>
>
> We should at least in Lucene 4.0 remove the hack in BooleanFilter that allows
> pure negative Filter clauses. This is not supported by BooleanQuery and
> confuses users (I think that's the problem in LUCENE-3450).
> The hack is buggy, as it does not respect deleted documents and returns them
> in its DocIdSet.
> Also we should think about disallowing pure-negative Queries at all and throw
> UOE.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]