[
https://issues.apache.org/jira/browse/LUCENE-3593?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13156920#comment-13156920
]
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: https://issues.apache.org/jira/browse/LUCENE-3593
> 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:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
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]