lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mark harwood <>
Subject RE: OutOfMemoryError while enumerating through reader.terms(fieldName)
Date Tue, 02 May 2006 14:19:15 GMT
>>Any advise is relly welcome.

Don't cache all that data.
You need a minimum of (numUniqueTerms*numDocs)/8 bytes
to hold that info.
Assuming 10,000 unique terms and 1 million docs you'd
need over 1 Gig of RAM.

I suppose the question is what are you trying to
achieve and why can't you use the existing Lucene APIs
instead of caching all those bitsets?


Switch an email account to Yahoo! Mail, you could win FIFA World Cup tickets.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message