Return-Path: Delivered-To: apmail-lucene-java-dev-archive@www.apache.org Received: (qmail 15715 invoked from network); 11 Feb 2010 18:11:19 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 11 Feb 2010 18:11:19 -0000 Received: (qmail 41017 invoked by uid 500); 11 Feb 2010 18:11:18 -0000 Delivered-To: apmail-lucene-java-dev-archive@lucene.apache.org Received: (qmail 40952 invoked by uid 500); 11 Feb 2010 18:11:18 -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 40944 invoked by uid 99); 11 Feb 2010 18:11:18 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 Feb 2010 18:11:18 +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, 11 Feb 2010 18:11:17 +0000 Received: from brutus.apache.org (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id C3E1929A0014 for ; Thu, 11 Feb 2010 10:10:57 -0800 (PST) Message-ID: <367565657.211611265911857800.JavaMail.jira@brutus.apache.org> Date: Thu, 11 Feb 2010 18:10:57 +0000 (UTC) From: "Uwe Schindler (JIRA)" To: java-dev@lucene.apache.org Subject: [jira] Commented: (LUCENE-2261) configurable MultiTermQuery TopTermsScoringBooleanRewrite pq size In-Reply-To: <583167261.209071265905979661.JavaMail.jira@brutus.apache.org> 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-2261?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12832607#action_12832607 ] Uwe Schindler commented on LUCENE-2261: --------------------------------------- Patch looks good, some things because of serializable: - The readResove method must go to the singleton constant, which should also throw UOE when modified - euquals / hashcode is neaded for the rewritemode, else FuzzyQuery & Co would no longer compare It could be solved by doing like for AutoRewrite and its unmodifiable constant. I know: Queries are a pain because of Serializable. +1 on adding a param to FuzzyQuery ctor > configurable MultiTermQuery TopTermsScoringBooleanRewrite pq size > ----------------------------------------------------------------- > > Key: LUCENE-2261 > URL: https://issues.apache.org/jira/browse/LUCENE-2261 > Project: Lucene - Java > Issue Type: Improvement > Components: Search > Reporter: Robert Muir > Priority: Minor > Fix For: Flex Branch, 3.1 > > Attachments: LUCENE-2261.patch > > > MultiTermQuery has a TopTermsScoringBooleanRewrite, that uses a priority queue to expand the query to the top-N terms. > currently N is hardcoded at BooleanQuery.getMaxClauseCount(), but it would be nice to be able to set this for top-N MultiTermQueries: e.g. expand a fuzzy query to at most only the 50 closest terms. > at a glance it seems one way would be to expose TopTermsScoringBooleanRewrite (it is private right now) and add a ctor to it, so a MultiTermQuery can instantiate one with its own limit. -- 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