Return-Path: Delivered-To: apmail-lucene-java-dev-archive@www.apache.org Received: (qmail 94013 invoked from network); 3 Nov 2006 07:11:48 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 3 Nov 2006 07:11:48 -0000 Received: (qmail 87217 invoked by uid 500); 3 Nov 2006 07:11:57 -0000 Delivered-To: apmail-lucene-java-dev-archive@lucene.apache.org Received: (qmail 86819 invoked by uid 500); 3 Nov 2006 07:11:55 -0000 Mailing-List: contact java-dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-dev@lucene.apache.org Delivered-To: mailing list java-dev@lucene.apache.org Received: (qmail 86808 invoked by uid 99); 3 Nov 2006 07:11:55 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 Nov 2006 23:11:55 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 Nov 2006 23:11:40 -0800 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id AB0097142FA for ; Thu, 2 Nov 2006 23:11:19 -0800 (PST) Message-ID: <24312273.1162537879697.JavaMail.root@brutus> Date: Thu, 2 Nov 2006 23:11:19 -0800 (PST) From: "Otis Gospodnetic (JIRA)" To: java-dev@lucene.apache.org Subject: [jira] Commented: (LUCENE-703) Change QueryParser to use ConstantScoreRangeQuery in preference to RangeQuery by default In-Reply-To: <9736569.1162246480730.JavaMail.root@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ http://issues.apache.org/jira/browse/LUCENE-703?page=comments#action_12446837 ] Otis Gospodnetic commented on LUCENE-703: ----------------------------------------- I'm too tired to look at the patch, but I am +1 for this change in principal. Voted for it in JIRA, too. > Change QueryParser to use ConstantScoreRangeQuery in preference to RangeQuery by default > ---------------------------------------------------------------------------------------- > > Key: LUCENE-703 > URL: http://issues.apache.org/jira/browse/LUCENE-703 > Project: Lucene - Java > Issue Type: Improvement > Components: QueryParser > Affects Versions: 2.1 > Reporter: Mark Harwood > Priority: Minor > Attachments: patch.diff > > > Change to QueryParser to default to using new ConstantScoreRangeQuery in preference to RangeQuery > for range queries. This implementation is generally preferable because it > a) Runs faster > b) Does not have the scarcity of range terms unduly influence score > c) avoids any "TooManyBooleanClauses" exception. > However, if applications really need to use the old-fashioned RangeQuery and the above > points are not required then the "useOldRangeQuery" property can be used to revert to old behaviour. > The patch includes extra Junit tests for this flag and all other Junit tests pass -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org For additional commands, e-mail: java-dev-help@lucene.apache.org