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:[EMAIL PROTECTED]
Sent: Monday, June 13, 2005 8:28 AM
To: java-user@lucene.apache.org
Subject: Re: TooManyClauses in BooleanQuery


[EMAIL PROTECTED] 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to