lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Doug Cutting <cutt...@apache.org>
Subject Re: Reconstruct segments file?
Date Fri, 04 Feb 2005 19:25:30 GMT
Ian Soboroff wrote:
> I've looked over the file formats web page, and poked at a known-good
> segments file from a separate, similar index using od(1) and such.  I
> guess what I'm not sure how to do is to recover the SegSize from the
> segment I have.

The SegSize should be the same as the length in bytes of any of the 
.f[0-9]+ files in the segment.  If your segment is in compound format 
then you can use IndexReader.main() in the current SVN version to list 
the files and sizes in the .cfs file, including its contained .f[0-9]+ 
files.

Doug

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


Mime
View raw message