lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yonik Seeley" <ysee...@gmail.com>
Subject Re: OutOfMemory with search(Query, Sort)
Date Sat, 01 Apr 2006 00:30:33 GMT
On 3/31/06, Artem Vasiliev <artvas@gmail.com> wrote:
> I've tried to utilize Lucene's sorting function
[...]
> But on large index (4mln docs) I
> get big delay with CPU to 100% and then OutOfMemoryError even when
> there's only 1 document in the resultset!

The first time you sort on a field, a FieldCache entry is populated,
enabling random access to that field value.  A single int field for a
4M index == int[4000000] == 16MB memory.

-Yonik
http://incubator.apache.org/solr Solr, The Open Source Lucene Search Server

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message