lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yonik Seeley" <>
Subject Re: OutOfMemory with search(Query, Sort)
Date Sat, 01 Apr 2006 00:30:33 GMT
On 3/31/06, Artem Vasiliev <> 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 Solr, The Open Source Lucene Search Server

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

View raw message