Return-Path: Delivered-To: apmail-lucene-java-dev-archive@www.apache.org Received: (qmail 59068 invoked from network); 16 Jun 2009 03:32:15 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 16 Jun 2009 03:32:15 -0000 Received: (qmail 27603 invoked by uid 500); 16 Jun 2009 03:32:25 -0000 Delivered-To: apmail-lucene-java-dev-archive@lucene.apache.org Received: (qmail 27515 invoked by uid 500); 16 Jun 2009 03:32:25 -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 27507 invoked by uid 99); 16 Jun 2009 03:32:25 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Jun 2009 03:32:25 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of serera@gmail.com designates 209.85.219.227 as permitted sender) Received: from [209.85.219.227] (HELO mail-ew0-f227.google.com) (209.85.219.227) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Jun 2009 03:32:16 +0000 Received: by ewy27 with SMTP id 27so5229261ewy.5 for ; Mon, 15 Jun 2009 20:31:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=gdkvj8cDWPcRZfyOoCUQaMOugJQTrGvdl1LxFr7Hf1Q=; b=LClOLIvNm/DjVIPaXchmHZgHowHLikIHunZfMR7FIvwjqsPOKasxy+Xy1TCAYWh0gN T3xA+3htOrOyj1E1f4clo8WqaGJoXLvvJgL030lQjePauYDeinac02ksWx1oZF8Hd4Ld zTUxpYbuT9Hro4xn4efPV1ZObwH3ARlZJfQbY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=MdHyjipiOhYTIbOuwQqlxxVZ2vCiXrTCq+bJCqflCFsKeYvmb7w0K2usJf3pi4fM1a UuI3m8XOIj5253QPIvMbzDkOpeLnrj57aAPmkbdAkg+u4Hgyn5GDWdHuH63DwqItEfFY mz0Kioj2C6VkKAoUcNS2/xSah7d8c7YDOVSfY= MIME-Version: 1.0 Received: by 10.216.51.202 with SMTP id b52mr2598876wec.38.1245123114293; Mon, 15 Jun 2009 20:31:54 -0700 (PDT) In-Reply-To: References: <9ac0c6aa0906151535i5516cf05g80f3d83229b06fab@mail.gmail.com> <786fde50906151953p4bcfa1daic983b8084297b5bd@mail.gmail.com> Date: Tue, 16 Jun 2009 06:31:54 +0300 Message-ID: <786fde50906152031p52c2bb57u2f532dc2aa99300d@mail.gmail.com> Subject: Re: createWeight protected From: Shai Erera To: java-dev@lucene.apache.org, yonik@lucidimagination.com Content-Type: multipart/alternative; boundary=0016e6ddab32edd9cf046c6ed078 X-Virus-Checked: Checked by ClamAV on apache.org --0016e6ddab32edd9cf046c6ed078 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit yes it is. just needs a volunteer to help me commit the patch. On Tue, Jun 16, 2009 at 6:15 AM, Yonik Seeley wrote: > On Mon, Jun 15, 2009 at 10:53 PM, Shai Erera wrote: > > But note that Query has weight() and createWeight(), which I am still > > confused about why we have two of them. Maybe I can consolidate them to > one? > > createWeight() raw weight, and weight() is a top-level normalized weight. > I don't think they should be consolidated, but good JavaDoc is needed. > > But the fact that "weight" is also a non-static public member is > further evidence that createWeight() needs to be public (how else > would one provide a different implementation?) > > > Anyway, I think this better be handled as part of LUCENE-1630, since the > > Query and Weight classes are touched already in that are exactly. > > If it's going to make it into 2.9, that's fine. > > -Yonik > http://www.lucidimagination.com > > --------------------------------------------------------------------- > To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org > For additional commands, e-mail: java-dev-help@lucene.apache.org > > --0016e6ddab32edd9cf046c6ed078 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
yes it is. just needs a volunteer to help me commit the pa= tch.

On Tue, Jun 16, 2009 at 6:15 AM, Yon= ik Seeley <yonik@lucidimagination.com> wrote:
On Mon, Jun 15, 2009 at 10:53 PM, Shai Erera<serera@gmail.com> wrote:
> But note that Query has weight() and createWeight(), which I am still<= br> > confused about why we have two of them. Maybe I can consolidate them t= o one?

createWeight() raw weight, and weight() is a top-level normalized wei= ght.
I don't think they should be consolidated, but good JavaDoc is needed.<= br>
But the fact that "weight" is also a non-static public member is<= br> further evidence that createWeight() needs to be public (how else
would one provide a different implementation?)

> Anyway, I think this better be handled as part of LUCENE-1630, since t= he
> Query and Weight classes are touched already in that are exactly.

If it's going to make it into 2.9, that's fine.

-Yonik
http://www.lu= cidimagination.com

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org


--0016e6ddab32edd9cf046c6ed078--