Return-Path: Delivered-To: apmail-lucene-java-dev-archive@www.apache.org Received: (qmail 60610 invoked from network); 16 Apr 2009 11:45:38 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 16 Apr 2009 11:45:38 -0000 Received: (qmail 15767 invoked by uid 500); 16 Apr 2009 11:45:36 -0000 Delivered-To: apmail-lucene-java-dev-archive@lucene.apache.org Received: (qmail 15670 invoked by uid 500); 16 Apr 2009 11:45:36 -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 15495 invoked by uid 99); 16 Apr 2009 11:45:36 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Apr 2009 11:45:36 +0000 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; Thu, 16 Apr 2009 11:45:35 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 91E4A234C051 for ; Thu, 16 Apr 2009 04:45:15 -0700 (PDT) Message-ID: <617053739.1239882315596.JavaMail.jira@brutus> Date: Thu, 16 Apr 2009 04:45:15 -0700 (PDT) From: "Uwe Schindler (JIRA)" To: java-dev@lucene.apache.org Subject: [jira] Commented: (LUCENE-1603) Changes for TrieRange in FilteredTermEnum and MultiTermQuery improvement In-Reply-To: <1530752940.1239726975709.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/LUCENE-1603?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12699654#action_12699654 ] Uwe Schindler commented on LUCENE-1603: --------------------------------------- Do you think the name is good? MultiTermQueryWrapperFilter or simplier MultiTermFilter? Its not really one of both, its a mix between wrapper and the real filter: It wraps the query, but does the getDocIdSet and TermEnums himself. > Changes for TrieRange in FilteredTermEnum and MultiTermQuery improvement > ------------------------------------------------------------------------ > > Key: LUCENE-1603 > URL: https://issues.apache.org/jira/browse/LUCENE-1603 > Project: Lucene - Java > Issue Type: Improvement > Affects Versions: 2.4, 2.9 > Reporter: Uwe Schindler > Assignee: Michael McCandless > Fix For: 2.9 > > Attachments: LUCENE-1603.patch, LUCENE-1603.patch, LUCENE-1603.patch > > > This is a patch, that is needed for the MultiTermQuery-rewrite of TrieRange (LUCENE-1602): > - Make the private members protected, to have access to them from the very special TrieRangeTermEnum > - Fix a small inconsistency (docFreq() now only returns a value, if a valid term is existing) > - Improvement of MultiTermFilter.getDocIdSet to return DocIdSet.EMPTY_DOCIDSET, if the TermEnum is empty (less memory usage) and faster. > - Add the getLastNumberOfTerms() to MultiTermQuery for statistics on different multi term queries and how may terms they affect, using this new functionality, the improvement of TrieRange can be shown (extract from test case there, 10000 docs index, long values): > {code} > [junit] Average number of terms during random search on 'field8': > [junit] Trie query: 244.2 > [junit] Classical query: 3136.94 > [junit] Average number of terms during random search on 'field4': > [junit] Trie query: 38.3 > [junit] Classical query: 3018.68 > [junit] Average number of terms during random search on 'field2': > [junit] Trie query: 18.04 > [junit] Classical query: 3539.42 > {code} > All core tests pass. -- 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