Details
-
Improvement
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
None
-
None
-
None
-
New
Description
I'm trying to play around with my own IntervalSource and found out that nextInterval method of IntervalIterator will be called sometimes even after nextDoc/ docID/ advance method returns NO_MORE_DOCS.
After I dug a bit more I found that FilteringIntervalIterator.reset is calling an inner iterator's nextInterval regardless of what the result of nextDoc, and also most (if not all) existing IntervalIterator's implementation do considered the case where nextInterval is called after nextDoc returns NO_MORE_DOCS.
We should probably update the javadoc and test if the behavior is necessary. Or we should change the current implementation to avoid this behavior
original email discussion thread: