Return-Path: Delivered-To: apmail-lucene-java-dev-archive@www.apache.org Received: (qmail 57296 invoked from network); 14 Aug 2009 17:31:32 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 14 Aug 2009 17:31:32 -0000 Received: (qmail 83582 invoked by uid 500); 14 Aug 2009 17:31:38 -0000 Delivered-To: apmail-lucene-java-dev-archive@lucene.apache.org Received: (qmail 83489 invoked by uid 500); 14 Aug 2009 17: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 83302 invoked by uid 99); 14 Aug 2009 17:31: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 17: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; Fri, 14 Aug 2009 17:31:35 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 0F00D234C052 for ; Fri, 14 Aug 2009 10:31:15 -0700 (PDT) Message-ID: <2096843422.1250271075060.JavaMail.jira@brutus> Date: Fri, 14 Aug 2009 10:31:15 -0700 (PDT) From: "Tim Smith (JIRA)" To: java-dev@lucene.apache.org Subject: [jira] Created: (LUCENE-1808) make Query.createWeight public (or add back Query.createQueryWeight()) 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 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