Return-Path: Delivered-To: apmail-lucene-java-dev-archive@www.apache.org Received: (qmail 53464 invoked from network); 16 Nov 2006 08:03:02 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 16 Nov 2006 08:03:02 -0000 Received: (qmail 96815 invoked by uid 500); 16 Nov 2006 08:03:09 -0000 Delivered-To: apmail-lucene-java-dev-archive@lucene.apache.org Received: (qmail 96775 invoked by uid 500); 16 Nov 2006 08:03:09 -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 96764 invoked by uid 99); 16 Nov 2006 08:03:09 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Nov 2006 00:03:09 -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, 16 Nov 2006 00:02:58 -0800 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 50D36714324 for ; Thu, 16 Nov 2006 00:02:38 -0800 (PST) Message-ID: <9856835.1163664158328.JavaMail.jira@brutus> Date: Thu, 16 Nov 2006 00:02:38 -0800 (PST) From: "Mark Harwood (JIRA)" To: java-dev@lucene.apache.org Subject: [jira] Closed: (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=all ] Mark Harwood closed LUCENE-703. ------------------------------- Resolution: Fixed > 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