lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "maryam ma'danipour" <m.madanip...@gmail.com>
Subject Re: segment_N file is missed
Date Wed, 16 Jun 2010 11:14:02 GMT
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 <
lucene@mikemccandless.com> 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 (wraps any other IndexOutput) to
> properly write the checksum.
>
> BTW how did you lose your segments_N file...?
>
> Mike
>
> On Tue, Jun 15, 2010 at 2:28 AM, maryam ma'danipour
> <m.madanipour@gmail.com> wrote:
> > 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 <goksron@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.madanipour@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
> >> goksron@gmail.com
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> >> For additional commands, e-mail: java-user-help@lucene.apache.org
> >>
> >>
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message