lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jayakumar.V" <jayakuma...@uaeexchange.com>
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.
 
Jayakumar.V

-----Original Message-----
From: Daniel Naber [mailto:lucenelist@danielnaber.de] 
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: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


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