Return-Path: Delivered-To: apmail-lucene-java-dev-archive@www.apache.org Received: (qmail 43657 invoked from network); 14 Aug 2009 20:45:31 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 14 Aug 2009 20:45:31 -0000 Received: (qmail 30509 invoked by uid 500); 14 Aug 2009 20:45:37 -0000 Delivered-To: apmail-lucene-java-dev-archive@lucene.apache.org Received: (qmail 30417 invoked by uid 500); 14 Aug 2009 20:45:37 -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 30221 invoked by uid 99); 14 Aug 2009 20:45:37 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 14 Aug 2009 20:45:37 +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; Fri, 14 Aug 2009 20:45:35 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id CDCA5234C004 for ; Fri, 14 Aug 2009 13:45:14 -0700 (PDT) Message-ID: <1154107595.1250282714829.JavaMail.jira@brutus> Date: Fri, 14 Aug 2009 13:45:14 -0700 (PDT) From: "Mark Miller (JIRA)" To: java-dev@lucene.apache.org Subject: [jira] Commented: (LUCENE-1808) make Query.createWeight public (or add back Query.createQueryWeight()) In-Reply-To: <2096843422.1250271075060.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-1808?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12743432#action_12743432 ] Mark Miller commented on LUCENE-1808: ------------------------------------- bq. Of course, that was just a comment. :) I never leave a comment alone ;) Gotto inflate my JIRA stats somehow. > make Query.createWeight public (or add back Query.createQueryWeight()) > ---------------------------------------------------------------------- > > Key: LUCENE-1808 > URL: https://issues.apache.org/jira/browse/LUCENE-1808 > Project: Lucene - Java > Issue Type: Improvement > Components: Query/Scoring > Affects Versions: 2.9 > Reporter: Tim Smith > > Now that the QueryWeight class has been removed, the public QueryWeight createQueryWeight() method on Query was also removed > i have cases where i want to create a weight for a sub query (outside of the org.apache.lucene.search package) and i don't want the weight normalized (think BooleanQuery outside of the o.a.l.search package) > in order to do this, i have to create a static Utils class inside o.a.l.search, pass in the Query and searcher, and have the static method call the protected createWeight method > this should not be necessary > This could be fixed in one of 2 ways: > 1. make createWeight() public on Query (breaks back compat) > 2. add the following method: > {code} > public Weight createQueryWeight(Searcher searcher) throws IOException { > return createWeight(searcher); > } > {code} > createWeight(Searcher) should then be deprectated in favor of the publicly accessible method -- 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