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.
 
Jayakumar.V

-----Original Message-----
From: Daniel Naber [mailto:[EMAIL PROTECTED] 
Sent: Friday, May 20, 2005 1:37 AM
To: java-user@lucene.apache.org
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.

See
http://wiki.apache.org/jakarta-lucene/LuceneFAQ#head-06fafb5d19e786a50fb3dfb
8821a6af9f37aa831

-- 
http://www.danielnaber.de

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to