Return-Path: Delivered-To: apmail-lucene-java-dev-archive@www.apache.org Received: (qmail 44523 invoked from network); 17 Aug 2009 22:31:19 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 17 Aug 2009 22:31:19 -0000 Received: (qmail 40330 invoked by uid 500); 17 Aug 2009 22:31:37 -0000 Delivered-To: apmail-lucene-java-dev-archive@lucene.apache.org Received: (qmail 40232 invoked by uid 500); 17 Aug 2009 22:31: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 40213 invoked by uid 99); 17 Aug 2009 22:31:37 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 17 Aug 2009 22:31: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; Mon, 17 Aug 2009 22:31:35 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 0E10C29A001E for ; Mon, 17 Aug 2009 15:31:15 -0700 (PDT) Message-ID: <1015657103.1250548275055.JavaMail.jira@brutus> Date: Mon, 17 Aug 2009 15:31:15 -0700 (PDT) From: "Mark Miller (JIRA)" To: java-dev@lucene.apache.org Subject: [jira] Resolved: (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:all-tabpanel ] Mark Miller resolved LUCENE-1808. --------------------------------- Resolution: Fixed Lucene Fields: [New, Patch Available] (was: [New]) Thanks all! r805189 > 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 > Reporter: Tim Smith > Assignee: Mark Miller > Priority: Minor > Fix For: 2.9 > > Attachments: LUCENE-1808.patch > > > 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