lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Elschot <paul.elsc...@xs4all.nl>
Subject Re: Possible bug in TermInfosReader/Writer
Date Sun, 05 Jun 2005 16:07:03 GMT
On Sunday 05 June 2005 16:34, Daniel Naber wrote:
> Hi,
> 
> I don't understand this code:
> 
> if (ti.docFreq >= skipInterval)
>   output.writeVInt(ti.skipOffset);
> 
> What does the skipInterval have to do with the document frequency? 

> Shouldn't that be something like if (i % skipInterval == 0), so that the 
> skip information is written regularly?
> 
> Opinions?

This skipping is probably for the first skipping within the docs of a term. 
The later skip info is written here in SegmentMerger line 337,
method appendPostings():

        if ((df % skipInterval) == 0) {
          bufferSkip(lastDoc);
        }

Regards,
Paul Elschot.

> 
> Regards
>  Daniel
> 
> -- 
> http://www.danielnaber.de
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-dev-help@lucene.apache.org
> 
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org


Mime
View raw message