lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Uwe Schindler (Commented) (JIRA)" <>
Subject [jira] [Commented] (LUCENE-3593) Add a filter returning all document without a value in a field
Date Thu, 24 Nov 2011 22:36:39 GMT


Uwe Schindler commented on LUCENE-3593:

Robert: I already said that. The Filter could also live of the shortcuts, if getDocsWithField
returns MatchAllBits it could shortcut to MatchAllDocsQuery/Filter or return null (depending
on negation or not). In all cases this Filter could in all cases do some shortcuts :-)

I will provide a patch later adressing also the stupid "rely on ArrayIndexOutOfBoundsException".
I am not even sure that FieldCacheTermsFilter works correct in trunk... I would prefer to
add the "< maxDoc" check in the iterator impl beyond FieldCacheDocIdSet.
> Add a filter returning all document without a value in a field
> --------------------------------------------------------------
>                 Key: LUCENE-3593
>                 URL:
>             Project: Lucene - Java
>          Issue Type: New Feature
>          Components: core/search
>    Affects Versions: 3.6, 4.0
>            Reporter: Simon Willnauer
>             Fix For: 3.6, 4.0
>         Attachments: LUCENE-3593.patch
> In some situations it would be useful to have a Filter that simply returns all document
that either have at least one or no value in a certain field. We don't have something like
that out of the box and adding it seems straight forward.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message