lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Omar Didi" <od...@Cyveillance.com>
Subject RE: TooManyClauses in BooleanQuery
Date Mon, 13 Jun 2005 13:38:42 GMT
if you get an OutOfMemoryException, I beleive the only thing you can do
is just increase the JVM heap to a larger size.

-----Original Message-----
From: Harald Stowasser [mailto:stowasser.h@idowa.de]
Sent: Monday, June 13, 2005 8:28 AM
To: java-user@lucene.apache.org
Subject: Re: TooManyClauses in BooleanQuery


a.herberger@makrolog.de schrieb:

> Hi Harald,
> 
> its nice too see, that there are others out there in Germany dealing
with 
> the same problems as we have been doing in the past years :-)
> 
> So for the "too many clauses" problem I have a solution for you, that
I 
> want to share:
> Just include somewhere at the very beginning of your program
(retrieval 
> part) the call:
> 
> BooleanQuery.setMaxClauseCount(1000*1000);

As you can see in the source code, I tried this already:
  query.setMaxClauseCount(262144);
It even don't work with higher values, it just crashed with Not enough
Memory -Error :-(

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