Hello . thanks so much for your reply I've checked CheckIndex class. but this class can not make a new segment_N if there isn't any even a new one. at first it needs to have a segment_N to reproduce it otherwise it throws nullPointerException. There is some information about what is written in segment_N in douments of
lucene and somehow I could regenerate this file, but still this file has some problems with checksum. I can't make a right checksum for this file, so when indexsearcher wants to search this index it throws an exception which tells the checksum isn't matched. Regards Madanipour On Mon, Jun 14, 2010 at 3:50 AM, Lance Norskog <goks...@gmail.com> wrote: > The CheckIndex class/program will recreate the segment files when it > removes a segment from an index. That's the only source I've found for > how to make these files. > > If you are able to hack this up, making a CFSDirectory would be a > wonderful addition to the Lucene Directory suite. A CFS file is a > complete Lucene index and it is much much easier to deploy single > files than file sets. > > On Wed, Jun 9, 2010 at 6:33 AM, maryam ma'danipour > <m.madanip...@gmail.com> wrote: > > Hello to all ! > > I have _0.cfs file of a lucene index directory but segments.gen and > > segments_2 are missing. Can I generate the segments.gen and segments_2 > files > > without having to regenerate the _0.cfs file. Does these "segments" files > > contain any index specific data, which will thus force me to regenerate > the > > entire index again. Or can I just generate the two "segments" file by > > copying these from another lucene index directory generated with the same > > lucene version or can I merge this inex with another index which has > > segments_N to retrieve the data ? > > > > Thanks > > > > > > -- > Lance Norskog > goks...@gmail.com > > --------------------------------------------------------------------- > To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org > For additional commands, e-mail: java-user-h...@lucene.apache.org > >