lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jayakumar.V" <>
Subject RE: Boolean Query - TooManyClauses Exception
Date Sat, 21 May 2005 06:04:58 GMT
Thanks for the link. 
I had overlooked the fact that RangeQuery expands to a sequence of term
queries and throws an exception when 1024 is reached. 

By setting the BooleanQuery.setMaxClauseCount() to the required value, I was
able to avoid the TooManyClauses exception. But, as mentioned in the FAQ
link, there is a memory overhead attached to this. An alternative,
suggested, was to use a DateFilter replacing the RangeQuery. Will try that.

thanks again for the link.

-----Original Message-----
From: Daniel Naber [] 
Sent: Friday, May 20, 2005 1:37 AM
Subject: Re: Boolean Query - TooManyClauses Exception

On Thursday 19 May 2005 14:39, Jayakumar.V wrote:

> I'm getting a TooManyClauses Exception when I try to query for a
> particular date range.



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

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

View raw message