Return-Path: Delivered-To: apmail-lucene-java-dev-archive@www.apache.org Received: (qmail 79314 invoked from network); 9 Nov 2008 12:29:43 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 9 Nov 2008 12:29:43 -0000 Received: (qmail 40194 invoked by uid 500); 9 Nov 2008 12:29:44 -0000 Delivered-To: apmail-lucene-java-dev-archive@lucene.apache.org Received: (qmail 40146 invoked by uid 500); 9 Nov 2008 12:29:43 -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 40136 invoked by uid 99); 9 Nov 2008 12:29:43 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 09 Nov 2008 04:29:43 -0800 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 09 Nov 2008 12:28:33 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 40C3C234C28C for ; Sun, 9 Nov 2008 04:28:46 -0800 (PST) Message-ID: <536602258.1226233726264.JavaMail.jira@brutus> Date: Sun, 9 Nov 2008 04:28:46 -0800 (PST) From: "Michael McCandless (JIRA)" To: java-dev@lucene.apache.org Subject: [jira] Updated: (LUCENE-1424) Change all mutli term querys so that they extend MultiTermQuery and allow for a constant score mode In-Reply-To: <2115535757.1224422583771.JavaMail.jira@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 [ https://issues.apache.org/jira/browse/LUCENE-1424?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Michael McCandless updated LUCENE-1424: --------------------------------------- Attachment: LUCENE-1424.patch OK I made some changes to the patch -- I think we are real close now: * Overrode WildcardQuery.rewrite to return TermQuery if the pattern has no wildcards (your suggestion above). * Simplified MultiTermFilter: made it a static inner class, moved TermGenerator inside it (absorbed IdGenerator interface into it), move bits() and getDocIdSet() out of the anonymous class, simplified the equals method. * Removed extra TermGenerator class from PrefixQuery. * Fixed but RangeFilter's ctor -- I think you could have gotten null rangeQuery if you pass in null collator. * Various small javadoc fixes, renaming, refactoring. * Deprecated ConstantScoreRangeQuery in favor of RangeQuery. * Overrode FuzzyQuery.setConstantScoreRewrite to throw UnsupportedOperationException, because it overrides rewrite. * Added set/getConstantScoreRewrite to QueryParser (defaults to true) and deprecated set/getUseOldRangeQuery. * Deprecated the ctor's of RangeQuery that take Term (in favor of String versions); removed new ctors in RangeQuery that take Term for upper/lower val. Mark can you look this over and see if the changes are OK? Thanks. > Change all mutli term querys so that they extend MultiTermQuery and allow for a constant score mode > --------------------------------------------------------------------------------------------------- > > Key: LUCENE-1424 > URL: https://issues.apache.org/jira/browse/LUCENE-1424 > Project: Lucene - Java > Issue Type: New Feature > Reporter: Mark Miller > Assignee: Michael McCandless > Priority: Minor > Attachments: LUCENE-1424.patch, LUCENE-1424.patch, LUCENE-1424.patch, LUCENE-1424.patch, LUCENE-1424.patch, LUCENE-1424.patch, LUCENE-1424.patch, LUCENE-1424.patch, LUCENE-1424.patch, LUCENE-1424.patch > > > Cleans up a bunch of code duplication, closer to how things should be - design wise, gives us constant score for all the multi term queries, and allows us at least the option of highlighting the constant score queries without much further work. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org For additional commands, e-mail: java-dev-help@lucene.apache.org