Re: Why does TermFreqDoubleValuesSource checks for PostingsEnum docId?

2019-01-28 Thread MarcoR
Thanks a lot Mikhail, that clarifies it for me. Cheers M -- Sent from: http://lucene.472066.n3.nabble.com/Lucene-Java-Developer-f564358.html - To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional

Re: Why does TermFreqDoubleValuesSource checks for PostingsEnum docId?

2019-01-28 Thread Mikhail Khludnev
Here is the case: the first doc under pe is 100. - the first call advanceExact(10) returns false and pe is advanced to 100. - the second call advanceExact(20) returns false without attempting to advance pe, but just checking current doc. another edge case, when pe is exhausted and docId() returns

Why does TermFreqDoubleValuesSource checks for PostingsEnum docId?

2019-01-27 Thread MarcoR
Hi, TermFreqDoubleValuesSource is used to expose a particular indexreader stat as per https://issues.apache.org/jira/browse/LUCENE-7736 I noticed that the advanceExact method is checking for the condition in which the postingsenum may have moved ahead of the doc Id of the FilterScorer which