lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Doug Cutting <cutt...@lucene.com>
Subject Re: negative number of docs?
Date Wed, 24 Sep 2003 19:36:54 GMT
Vince Taluskie wrote:
> Index /rr/tmpindexes/global/SL contains -245430166 documents
> 
> 11:53:36,377 ERROR [Engine] StandardWrapperValve[RRSearcher]: 
> Servlet.service() 
> for servlet RRSearcher threw exception
> java.lang.NegativeArraySizeException
>         at org.apache.lucene.index.SegmentReader.norms(Unknown Source)
> 
> I figured I would be fine with the number of documents upto the 2-4B
> range - and the data uploads for the project are finished so the indexes
> shouldn't need to get larger after this but it looks like I've hit a 
> limit between 242M-291M documents.

I think the problem is on line 77 of FieldReader.java.  Try replacing 
the line:

     size = (int)indexStream.length() / 8;

with:

     size = (int)(indexStream.length() / 8);

I believe this will fix the problem.  Tell me if it does.

Thanks,

Doug


Mime
View raw message