lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Omar Didi" <>
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 []
Sent: Monday, June 13, 2005 8:28 AM
Subject: Re: TooManyClauses in BooleanQuery schrieb:

> Hi Harald,
> its nice too see, that there are others out there in Germany dealing
> 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
> want to share:
> Just include somewhere at the very beginning of your program
> part) the call:
> BooleanQuery.setMaxClauseCount(1000*1000);

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

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message