lucenenet-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Wagner Ignacio Pinto Junior <wagneri...@hotmail.com>
Subject RE: Hi. Does anyone know how to solve the OutOfMemory Exception during Search?
Date Wed, 01 Jul 2009 18:20:33 GMT

Hi Scott,

 

I was reading Lucene in Action and it warns us about reading all hits at once. 

 

Do you use hits or HitCollector? 

 

If you use HitCollector or parses all hits that's the problem.

 

Try to page through the hits it uses lazy loading.

 

 

I'm new to Lucene, so, sorry if I made any mistake here ;)

 

Wagner Junior
 
> Date: Wed, 1 Jul 2009 01:09:55 +0800
> Subject: Hi. Does anyone know how to solve the OutOfMemory Exception during Search?
> From: getyourcontacts@gmail.com
> To: lucene-net-dev@incubator.apache.org
> 
> Hi.I have created an Index by lucene.net which contains 30M documents. The
> result index file is ~4G.
> Now the problem is, when I search for some keyword which get over many
> results. Lucene.net get OutOfMemory Exception.
> 
> I think if we could limit the results eg: 20K results at most could solve
> this problem.
> 
> Welcome any solution.
> 
> Thanks.
> Regards.
> Scott

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message