[
https://issues.apache.org/jira/browse/LUCENE-9541?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17208974#comment-17208974
]
ASF subversion and git services commented on LUCENE-9541:
---------------------------------------------------------
Commit 6b8288445f96e3cb5715e0f106ea2202dab57561 in lucene-solr's branch
refs/heads/master from Mayya Sharipova
[ https://gitbox.apache.org/repos/asf?p=lucene-solr.git;h=6b82884 ]
LUCENE-9541 ConjunctionDISI sub-iterators check (#1937)
* LUCENE-9541 ConjunctionDISI sub-iterators check
Ensure sub-iterators of a conjunction iterator are on the same doc.
> Ensure sub-iterators of ConjunctionDISI are on the same document
> ----------------------------------------------------------------
>
> Key: LUCENE-9541
> URL: https://issues.apache.org/jira/browse/LUCENE-9541
> Project: Lucene - Core
> Issue Type: Bug
> Reporter: Mayya Sharipova
> Priority: Minor
> Time Spent: 1h 20m
> Remaining Estimate: 0h
>
> Not completely sure if this is a bug.
> BitSetConjuctionDISI advances based on its lead – DocIdSetIterator iterator,
> and doesn't consider that its another component – BitSetIterator may have
> already advanced passed a certain doc. This may result in duplicate documents.
> For example if BitSetConjuctionDISI _disi_ is composed of DocIdSetIterator
> _a_ of docs [0,1] and BitSetIterator _b_ of docs [0,1]. Doing `b.nextDoc()`
> we are collecting doc0, doing `disi.nextDoc` we again collecting the same
> doc0.
> It seems that other conjunction iterators don't have this behaviour, if we
> are advancing any of their component pass a certain document, the whole
> conjunction iterator will also be advanced pass this document.
>
> This behaviour was exposed in this
> [PR|https://github.com/apache/lucene-solr/pull/1903].
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]