Re: TermEnum.docFreq() includes deleted docs

2012-07-18 Thread Michael McCandless
On Tue, Jul 17, 2012 at 12:44 PM, Roman Chyla wrote: > Hi, > > Tests show that TermEnum.docFreq() returns sum of all docs, including > the deleted ones. Which seems to (indirectly) contradict the javadoc That's right; fixing it to reflect deleted documents would be prohibitively costly. Hmm whic

TermEnum.docFreq() includes deleted docs

2012-07-17 Thread Roman Chyla
Hi, Tests show that TermEnum.docFreq() returns sum of all docs, including the deleted ones. Which seems to (indirectly) contradict the javadoc This frequency count is used to compute uninverted index (DocTermOrds.uninvert()). The code goes like: final int df = te.docFreq(); if (df <=