Thanks to everyone for the explanation. Given that RangeQuery is clearly unsuitable for out requirements, ConstantScoreRangeQuery looks ideal.
However, we're building our queries (at the moment) using QueryParser. Is there any way we can get QueryParser to use a ConstantScoreRangeQuery instead of a RangeQuery? Cheers, Tim. -----Original Message----- From: Yonik Seeley [mailto:[EMAIL PROTECTED] Sent: 16 March 2006 18:04 To: java-user@lucene.apache.org Subject: Re: TooManyClauses exception in Lucene (1.4) On 3/16/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > I had no idea that rangequery worked by enumerating every > possible value, that's terrifying. You could use either a RangeFilter or a ConstantScoreRangeQuery -Yonik http://incubator.apache.org/solr Solr, The Open Source Lucene Search Server --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -------------------------------------------------------------------------------------------------------------------------------------------- The information contained in this email message may be confidential. If you are not the intended recipient, any use, interference with, disclosure or copying of this material is unauthorised and prohibited. Although this message and any attachments are believed to be free of viruses, no responsibility is accepted by Informa for any loss or damage arising in any way from receipt or use thereof. Messages to and from the company are monitored for operational reasons and in accordance with lawful business practices. If you have received this message in error, please notify us by return and delete the message and any attachments. Further enquiries/returns can be sent to [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]