Return-Path: Delivered-To: apmail-lucene-dev-archive@www.apache.org Received: (qmail 76523 invoked from network); 3 Jan 2011 13:31:08 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 3 Jan 2011 13:31:08 -0000 Received: (qmail 70963 invoked by uid 500); 3 Jan 2011 13:31:07 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 70869 invoked by uid 500); 3 Jan 2011 13:31:07 -0000 Mailing-List: contact dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@lucene.apache.org Delivered-To: mailing list dev@lucene.apache.org Received: (qmail 70862 invoked by uid 99); 3 Jan 2011 13:31:06 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Jan 2011 13:31:06 +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.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Jan 2011 13:31:06 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id p03DUjKU010697 for ; Mon, 3 Jan 2011 13:30:46 GMT Message-ID: <16633136.107671294061445974.JavaMail.jira@thor> Date: Mon, 3 Jan 2011 08:30:45 -0500 (EST) From: "Robert Muir (JIRA)" To: dev@lucene.apache.org Subject: [jira] Commented: (LUCENE-2836) FieldCache rewrite method for MultiTermQueries In-Reply-To: <4500530.39181293512685825.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/LUCENE-2836?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12976729#action_12976729 ] Robert Muir commented on LUCENE-2836: ------------------------------------- OK, I'll work on getting it into contrib. I think its best to put it there because its generally slower (only faster in certain circumstances), and at the moment the app has to supply the 'query planning logic' to make good use of it. > FieldCache rewrite method for MultiTermQueries > ---------------------------------------------- > > Key: LUCENE-2836 > URL: https://issues.apache.org/jira/browse/LUCENE-2836 > Project: Lucene - Java > Issue Type: New Feature > Reporter: Robert Muir > Fix For: 4.0 > > Attachments: LUCENE-2836.patch > > > For some MultiTermQueries, like RangeQuery we have a FieldCacheRangeFilter etc (in this case its particularly optimized). > But in the general case, since LUCENE-2784 we can now have a rewrite method to rewrite any MultiTermQuery > using the FieldCache, because MultiTermQuery's getEnum no longer takes IndexReader but Terms, and all the > FilteredTermsEnums are now just real TermsEnum decorators. > In cases like low frequency queries this is actually slower (I think this has been shown for numeric ranges before too), > but for the really high-frequency cases like especially ugly wildcards, regexes, fuzzies, etc, this can be several times faster > using the FieldCache instead, since all the terms are in RAM and automaton can blast through them quicker. -- 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: dev-unsubscribe@lucene.apache.org For additional commands, e-mail: dev-help@lucene.apache.org