lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yonik Seeley" <>
Subject Re: Re[4]: OutOfMemory with search(Query, Sort)
Date Wed, 05 Apr 2006 14:28:11 GMT
On 4/5/06, Artem Vasiliev <> wrote:
> The int[] array here contains references to String[] and to populate
> it still all the field values need to be loaded and compared/sorted

Terms are stored and iterated in sorted order, so no sorting needs to be done.
It's still the case that all the terms for that field need to be
iterated over though.

Another approach might be to store term vectors and retrieve the term
only from documents matching a particular query.  It might be slower
per query, but wouldn't have the overhead of populating the int[]

-Yonik Solr, The Open Source Lucene Search Server

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

View raw message