Re: segment_N file is missed

2010-06-21 Thread maryam ma'danipour
That's great. I'll try it. thanks On Sat, Jun 19, 2010 at 11:10 AM, Lance Norskog wrote: > This code is old (2006!) and I've updated it for Lucene 2.9.2, ad the > trunk.This version only works for one CFS file (that I've tested). The > code does not check versions carefully. Here are both versi

Re: segment_N file is missed

2010-06-18 Thread Lance Norskog
This code is old (2006!) and I've updated it for Lucene 2.9.2, ad the trunk.This version only works for one CFS file (that I've tested). The code does not check versions carefully. Here are both versions: Lucene 2.9.2: package org.apache.lucene.index; import java

Re: segment_N file is missed

2010-06-16 Thread Michael McCandless
On Wed, Jun 16, 2010 at 10:38 AM, Yonik Seeley wrote: > On Tue, Jun 15, 2010 at 5:23 AM, Michael McCandless > wrote: >> CheckIndex is not able to recover from this corruption (missing >> segments_N file); this would be a nice addition... >> >> But it sounds like you've worked out a way to write y

Re: segment_N file is missed

2010-06-16 Thread Yonik Seeley
On Tue, Jun 15, 2010 at 5:23 AM, Michael McCandless wrote: > CheckIndex is not able to recover from this corruption (missing > segments_N file); this would be a nice addition... > > But it sounds like you've worked out a way to write your own segmetns_N? > > Use oal.store.ChecksumIndexOutput (wrap

Re: segment_N file is missed

2010-06-16 Thread maryam ma'danipour
Hello I could regenerate the segment_N via http://www.gossamer-threads.com/lists/lucene/java-user/39744 I could regenerate the segment_N. I'll try oal.store.ChecksumIndexOutput. thanks On Tue, Jun 15, 2010 at 1:53 PM, Michael McCandless < luc...@mikemccandless.com> wrote: > CheckIndex is not able

Re: segment_N file is missed

2010-06-15 Thread Michael McCandless
CheckIndex is not able to recover from this corruption (missing segments_N file); this would be a nice addition... But it sounds like you've worked out a way to write your own segmetns_N? Use oal.store.ChecksumIndexOutput (wraps any other IndexOutput) to properly write the checksum. BTW how did

Re: segment_N file is missed

2010-06-14 Thread maryam ma'danipour
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 seg

Re: segment_N file is missed

2010-06-13 Thread Lance Norskog
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 c