lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Adrien Grand (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (LUCENE-8378) Add DocIdSetIterator.range method
Date Wed, 04 Jul 2018 07:12:00 GMT

    [ https://issues.apache.org/jira/browse/LUCENE-8378?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16532362#comment-16532362
] 

Adrien Grand commented on LUCENE-8378:
--------------------------------------

+1

The {{if (doc == -1)}} specialization in nextDoc() doesn't seem to buy much compared to always
returning {{advance(doc + 1)}}?

> Add DocIdSetIterator.range method
> ---------------------------------
>
>                 Key: LUCENE-8378
>                 URL: https://issues.apache.org/jira/browse/LUCENE-8378
>             Project: Lucene - Core
>          Issue Type: Improvement
>            Reporter: Michael McCandless
>            Assignee: Michael McCandless
>            Priority: Major
>         Attachments: LUCENE-8378.patch, LUCENE-8378.patch
>
>
> We already have {{DocIdSetIterator.all}} and {{DocIdSetIterator.empty}} but I'd like
to also add a {{range}} method to match a specified range of docids.
> E.g. this can be useful if you sort your index by a key, and then create a custom query
to match documents by values for that key, or by range (LUCENE-7714).



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message