lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yonik Seeley" <yo...@apache.org>
Subject Re: Getting a document by primary key
Date Mon, 03 Nov 2008 19:48:05 GMT
On Mon, Nov 3, 2008 at 2:40 PM, Marc Sturlese <marc.sturlese@gmail.com> wrote:
> As hits is deprecated I tried to use termdocs and top docs...

Try using searcher.getFirstMatch(t) as Jonathan is.  It should be
faster than Hits.

> but the memory
> problem never disapeared...
> If I call the garbage collector every time I use the upper code the memory
> doesn't increase undefinitely but... the app works soo slow.

That's really just the way Java GC works.  Don't call GC explicitly,
just pick the max amount of memory you need to give to the JVM and let
it handle the rest.

-Yonik

Mime
View raw message