Hi Bill, I can't seem to correctly parse it either... Format = FF FF FF FF Version = 00 00 00 00 00 00 00 28 SegCount = 00 00 00 4E ???? = 00 00 00 04
-Yonik Now hiring -- http://forms.cnet.com/slink?231706 On 10/26/05, Bill Tschumy <[EMAIL PROTECTED]> wrote: > > I have been trying to reconstitute a corrupted index. I have been > looking at the segments file with a hex-editor and its format doesn't > seem to quite agree with the description found at: > <http://lucene.apache.org/java/docs/fileformats.html> > > It indicates the segments file looks like this: > Segments --> Format, Version, SegCount, <SegName, SegSize>SegCount > > However, the couple I have looked at all have an additional > undocumented UInt32 (probably) field after the Version field. What > is this and why is it not in the documentation? > > Here is the hex from a small segment file to show you. The 00 00 00 > 4E at the end of the first line seems like it should not be there. > Am I mis-reading something? > > FF FF FF FF 00 00 00 00 00 00 00 28 00 00 00 4E > 00 00 00 04 02 5F 6A 00 00 00 0A 03 5F 31 33 00 > 00 00 0A 03 5F 31 6E 00 00 00 0A 03 5F 32 35 00 > 00 00 09 > > -- > Bill Tschumy > Otherwise -- Austin, TX > http://www.otherwise.com >