[
https://issues.apache.org/jira/browse/LUCENE-6280?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14333092#comment-14333092
]
Adrien Grand commented on LUCENE-6280:
--------------------------------------
I initially added it as a way to avoid doing
{code}
for (;; doc = approximation.nextDoc()) {
if (doc == NO_MORE_DOCS) {
return NO_MORE_DOCS;
} else if (twoPhaseIterator.matches()) {
return doc;
}
}
{code}
in every scorer that would support approximations but we did not end up using
it much (only FieldValueQuery and DocValuesRangeQuery do) so +1 to remove.
> Remove TwoPhaseDocIdSetIterator.asDocIdSetIterator
> --------------------------------------------------
>
> Key: LUCENE-6280
> URL: https://issues.apache.org/jira/browse/LUCENE-6280
> Project: Lucene - Core
> Issue Type: Bug
> Reporter: Robert Muir
>
> This api defeats the point.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]