Re: Question about behaviour of IntervalIterator

2020-11-19 Thread Haoyu Zhai
Thanks Alan, I've opened an issue: https://issues.apache.org/jira/browse/LUCENE-9618 And also a PR including a unit test to demonstrate the issue: https://github.com/apache/lucene-solr/pull/2090 Seems we're not on the exact same point, originally I'm asking about whether nextInterval() are

Re: Question about behaviour of IntervalIterator

2020-11-19 Thread Alan Woodward
Some of the minimum-interval algorithms will call nextInterval() or start() even after the interval has been exhausted, so we need to handle those situations properly. Improved java doc would definitely be helpful though, and maybe we should update checkIntervals() in TestIntervals to test

Question about behaviour of IntervalIterator

2020-11-19 Thread Haoyu Zhai
Hi, 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