[
https://issues.apache.org/jira/browse/LUCENE-8378?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16533688#comment-16533688
]
Michael McCandless commented on LUCENE-8378:
--------------------------------------------
{quote}The {{if (doc == -1)}} specialization in nextDoc() doesn't seem to buy
much compared to always returning {{advance(doc + 1)}}?
{quote}
Oh yes, that's silly; I'll remove it.
> 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: [email protected]
For additional commands, e-mail: [email protected]