Hi Ravi:

    I'd like to use this too. Do you have an update on this?

Thanks

-John


On Fri, 25 Mar 2005 07:28:17 -0600, Ravi Rao <[EMAIL PROTECTED]> wrote:
> > From: [EMAIL PROTECTED]
> > Sent: Fri 3/25/2005 2:19 AM
> 
> > I used your NullDirectory.java, and found it works fine for smaller
> > indexes, but when it comes to larger indexes(I am not quite sure, just
> > observation), it always throws this exception at here:
> 
> > [ ... code and stack trace moved to end of mail ...]
> 
> Chris,
> 
> The call to addIndexes results in the target directory (in this case
> an instance of NullDirectory) being optimized twice.  Your stacktrace
> shows that it is the second call to optimize that is the problem.  I
> assume this is 'lucene-1.4-final'.
> 
> I will get to this as soon as I can.  Thanks for taking the time to
> send me this information.
> --
> Ravi/
> -----------------------------------------------------------
> 
> private void refill() throws IOException {
>     long start = bufferStart + bufferPosition;
>     long end = start + BUFFER_SIZE;
>     if (end > length)                  // don't read past EOF
>       end = length;
>     bufferLength = (int)(end - start);
>     if (bufferLength == 0)
>       throw new IOException("read past EOF");
>    ....
> 
> The print out and stack trace are:
> merging segments _2io (50 docs) _2k3 (50 docs) _2li (50 docs) _2mx (50 docs) 
> _2oc (50 docs) _2pr (50 docs) _2r6 (50 docs) _2sl (50 docs) _2u0 (50 docs) 
> _2u4 (3 docs) into _0 (453 docs)
> merging segments _25x (50 docs) _27c (50 docs) _28r (50 docs) _2a6 (50 docs) 
> _2bl (50 docs) _2d0 (50 docs) _2ef (50 docs) _2fu (50 docs) _2h9 (50 docs) _0 
> (453 docs)ERROR 44|java.io.IOException: read past EOF|...
> java.io.IOException: read past EOF
>     at org.apache.lucene.store.InputStream.refill(InputStream.java:154)
>     at org.apache.lucene.store.InputStream.readByte(InputStream.java:43)
>     at org.apache.lucene.store.InputStream.readVInt(InputStream.java:83)
>     at 
> org.apache.lucene.index.CompoundFileReader.<init>(CompoundFileReader.java:66)
>     at 
> org.apache.lucene.index.SegmentReader.initialize(SegmentReader.java:104)
>     at org.apache.lucene.index.SegmentReader.<init>(SegmentReader.java:94)
>     at org.apache.lucene.index.IndexWriter.mergeSegments(IndexWriter.java:480)
>     at org.apache.lucene.index.IndexWriter.optimize(IndexWriter.java:366)
>     at org.apache.lucene.index.IndexWriter.addIndexes(IndexWriter.java:389)
> 
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to