Return-Path: Delivered-To: apmail-lucene-java-dev-archive@www.apache.org Received: (qmail 7047 invoked from network); 12 Nov 2005 02:29:28 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 12 Nov 2005 02:29:28 -0000 Received: (qmail 20503 invoked by uid 500); 12 Nov 2005 02:29:25 -0000 Delivered-To: apmail-lucene-java-dev-archive@lucene.apache.org Received: (qmail 20466 invoked by uid 500); 12 Nov 2005 02:29:25 -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 20454 invoked by uid 99); 12 Nov 2005 02:29:24 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [192.87.106.226] (HELO ajax.apache.org) (192.87.106.226) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 11 Nov 2005 18:29:24 -0800 Received: from ajax.apache.org (ajax.apache.org [127.0.0.1]) by ajax.apache.org (Postfix) with ESMTP id 26255E0 for ; Sat, 12 Nov 2005 03:29:03 +0100 (CET) Message-ID: <288788815.1131762543124.JavaMail.jira@ajax.apache.org> Date: Sat, 12 Nov 2005 03:29:03 +0100 (CET) From: "Hoss Man (JIRA)" To: java-dev@lucene.apache.org Subject: [jira] Updated: (LUCENE-383) ConstantScoreRangeQuery - fixes "too many clauses" exception Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/LUCENE-383?page=all ] Hoss Man updated LUCENE-383: ---------------------------- Attachment: TestConstantScoreRangeQuery.java a Unit test for ConstantScoreRangeQuery ... that was easy to crank out based on the existing BaseTestRangeFilter. One catch is that the test currently fails: when i tried to prove that the scores were not only constant, but also equaled the boost I couldn't get it to work -- perhaps I have a missunderstanding of how HItCollector works, but I thought that was the safest way to get a "raw" score. > ConstantScoreRangeQuery - fixes "too many clauses" exception > ------------------------------------------------------------ > > Key: LUCENE-383 > URL: http://issues.apache.org/jira/browse/LUCENE-383 > Project: Lucene - Java > Type: Bug > Components: Search > Versions: 1.4 > Environment: Operating System: other > Platform: Other > Reporter: Yonik Seeley > Assignee: Lucene Developers > Attachments: ConstantScoreQuery.java, ConstantScoreQuery.java, ConstantScoreRangeQuery.java, ConstantScoreRangeQuery.java, TestConstantScoreRangeQuery.java > > ConstantScoreQuery wraps a filter (representing a set of documents) and returns > a constant score for each document in the set. > ConstantScoreRangeQuery implements a RangeQuery that works for any number of > terms in the range. It rewrites to a ConstantScoreQuery that wraps a RangeFilter. > Still needed: > - unit tests (these classes have been tested and work fine in-house, but the > current tests rely on too much application specific code) > - code review of Weight() implementation (I'm unsure If I got all the score > normalization stuff right) > - explain() implementation > NOTE: requires Java 1.4 for BitSet.nextSetBit() -- 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