lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Busch <>
Subject Re: IndexReader#docFreq(Term)
Date Fri, 31 Aug 2007 06:50:03 GMT
Chris Hostetter wrote:

> unless i'm mistaken, docFreq isn't the only method affected by deleted
> docs, things like termDocs, termPositions, terms, ... pretty much all of
> hte IndexReader methods work that way (even getFieldNames could be
> missleading if the only doc with a field of that name has been deleted)

TermDocs and TermPositions do take deleted docs into account.

The problem with TermEnum and docFreq is that a term doesn't get deleted
from the dictionary, even if its posting list only contains deleted
docs. To avoid this would be quite inefficient.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message