Return-Path: Delivered-To: apmail-lucene-java-dev-archive@www.apache.org Received: (qmail 73462 invoked from network); 25 Sep 2006 16:55:45 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 25 Sep 2006 16:55:45 -0000 Received: (qmail 17088 invoked by uid 500); 25 Sep 2006 16:55:41 -0000 Delivered-To: apmail-lucene-java-dev-archive@lucene.apache.org Received: (qmail 17038 invoked by uid 500); 25 Sep 2006 16:55:41 -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 16908 invoked by uid 99); 25 Sep 2006 16:55:40 -0000 Received: from idunn.apache.osuosl.org (HELO idunn.apache.osuosl.org) (140.211.166.84) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 25 Sep 2006 09:55:40 -0700 Authentication-Results: idunn.apache.osuosl.org header.from=markharw00d@yahoo.co.uk; domainkeys=good Authentication-Results: idunn.apache.osuosl.org smtp.mail=markharw00d@yahoo.co.uk; spf=permerror X-ASF-Spam-Status: No, hits=1.9 required=5.0 tests=DNS_FROM_RFC_ABUSE,DNS_FROM_RFC_POST Received-SPF: error (idunn.apache.osuosl.org: domain yahoo.co.uk from 217.12.10.212 cause and error) DomainKey-Status: good X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 Received: from [217.12.10.212] ([217.12.10.212:28440] helo=web26001.mail.ukl.yahoo.com) by idunn.apache.osuosl.org (ecelerity 2.1.1.8 r(12930)) with ESMTP id 3C/7C-13750-BF908154 for ; Mon, 25 Sep 2006 09:55:26 -0700 Received: (qmail 41253 invoked by uid 60001); 25 Sep 2006 16:54:49 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.co.uk; h=Message-ID:Received:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type; b=qW79g53cmRS9jXOB7M+/9lDE0C/hJvBWhz7qitpTEFz9FTlPZy0U3+12H29yEQ+w9+jdgkFXvVSg7A9ZRx8Inat2+ySlOeNswdHkqR6JFhs3LQtiNmzaDOKO1SJODQA/ZK5WfgCQYfRyKKFG53UFBBvgjLQluBKsYUddGn2Ew80= ; Message-ID: <20060925165449.41251.qmail@web26001.mail.ukl.yahoo.com> Received: from [193.36.230.96] by web26001.mail.ukl.yahoo.com via HTTP; Mon, 25 Sep 2006 16:54:49 GMT Date: Mon, 25 Sep 2006 16:54:49 +0000 (GMT) From: mark harwood Reply-To: mark harwood Subject: RangeQuery - rewrite to a RangeFilter in a ConstantScoreQuery? To: javadev MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Given the trouble people routinely get themselves into using RangeQuery would it make sense to change the "rewrite" method to generate a ConstantScoreQuery wrapping a RangeFilter? The only disadvantages I can see would be: 1) Scoring would change - some users may find their apps produce different scores for queries which they have tuned "match thresholds" for. 2) Highlighting would not work for RangeQueries (not something I would normally see as useful) 3) Explain() would not work the same This is to be weighed up against the advantages of: 1) Faster queries for most users (see method 1 vs method 4 in http://wiki.apache.org/jakarta-lucene/FilteringOptions - 4 times faster in that benchmark) 2) No more "too many clauses" exceptions foxing end users 3) Scoring would change - normally for the better. The IDF of terms produced by the range query is no longer a factor that skews results eg scenarios where the Sundays in a date range typically rank higher because less documents are posted on that day. The change wouldn't break the API and therefore require changes to people's client code. Thoughts? --------------------------------------------------------------------- To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org For additional commands, e-mail: java-dev-help@lucene.apache.org