On Mon, Nov 3, 2008 at 2:40 PM, Marc Sturlese <[EMAIL PROTECTED]> 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

Reply via email to