You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by Steve Rajavuori <St...@opin.com> on 2004/12/22 23:41:55 UTC

RE: CFS file and file formats

Thanks. I am trying to repair a corrupted 'segments' file. I am attempting
to manually edit the file to add some missing segment names, but I need to
add the correct segment size for each. Can anyone tell me how to determine
the correct segment size (number of documents in the segment) by looking in
either a .CFS file, or in the appropriate file in a non-compound segment?

Steve

-----Original Message-----
From: Bernhard Messer [mailto:bernhard.messer@intrafind.de]
Sent: Wednesday, December 22, 2004 4:13 PM
To: Lucene Users List
Subject: Re: CFS file?


Steve Rajavuori schrieb:

>Can someone tell me the purpose of the .CFS files? The Index File Formats
>page does not mention this type of file.
>  
>
uuuh, you're right, it is not documented at fileformats.html.
Since Lucene 1.4, the individual index files are stored per default 
within one single compound file which has the file extension .cvs . You 
can switch that behaviour off by setting the public static member 
IndexWriter.useCompoundFile to false.

Bernhard


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

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


Re: CFS file and file formats

Posted by Daniel Naber <da...@t-online.de>.
On Wednesday 22 December 2004 23:41, Steve Rajavuori wrote:

> Thanks. I am trying to repair a corrupted 'segments' file.

Why are you sure it's corrupted? Are the *.cfs file and the other files 
types mixed in one directory? Then that's the problem: if you have *.cfs, 
segments, and deletable, nothing else should exist in that directory or 
Lucene will get confused.

Regards
 Daniel

-- 
http://www.danielnaber.de

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