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: getyourconta...@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

Reply via email to