lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yonik Seeley" <yo...@apache.org>
Subject Re: Avoiding sort by date
Date Mon, 16 Oct 2006 03:32:26 GMT
On 10/12/06, rayvittal-lists@yahoo.com <rayvittal-lists@yahoo.com> wrote:
> Does the Sort function create some kind of internal cache?

Yes, it's called the FieldCache, and there is a cache with a weak
reference to the index reader as a key.  As long as there is a
reference to the index reader (even after close() has been called) the
cache data will exist.

-Yonik
http://incubator.apache.org/solr Solr, the open-source Lucene search server

> Observing the heap, it seems that a full garbage collection after calling
> IndexSearcher.close() still leaves a lot of memory occupied.

---------------------------------------------------------------------
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