Return-Path: Delivered-To: apmail-lucene-java-dev-archive@www.apache.org Received: (qmail 53364 invoked from network); 26 Apr 2006 00:13:42 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 26 Apr 2006 00:13:42 -0000 Received: (qmail 52743 invoked by uid 500); 26 Apr 2006 00:13:39 -0000 Delivered-To: apmail-lucene-java-dev-archive@lucene.apache.org Received: (qmail 52702 invoked by uid 500); 26 Apr 2006 00:13:39 -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 52691 invoked by uid 99); 26 Apr 2006 00:13:39 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 25 Apr 2006 17:13:39 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [195.121.6.172] (HELO hnexfe06.hetnet.nl) (195.121.6.172) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 25 Apr 2006 17:13:38 -0700 Received: from [192.168.0.100] ([86.85.154.64]) by hnexfe06.hetnet.nl with Microsoft SMTPSVC(5.0.2195.6874); Wed, 26 Apr 2006 02:13:14 +0200 Mime-Version: 1.0 (Apple Message framework v749.3) In-Reply-To: <444E5DC1.5060808@apache.org> References: <57B8E4F3-4483-4F3F-B3CE-C9F6B1393D19@snigel.net> <444E5DC1.5060808@apache.org> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <49E83C3D-DA6E-4355-B17F-A7EEC2CB9F41@snigel.net> Content-Transfer-Encoding: 7bit From: karl wettin Subject: Re: boosting fields Date: Wed, 26 Apr 2006 02:15:55 +0200 To: java-dev@lucene.apache.org X-Mailer: Apple Mail (2.749.3) X-OriginalArrivalTime: 26 Apr 2006 00:13:14.0932 (UTC) FILETIME=[363B7F40:01C668C6] X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N 25 apr 2006 kl. 19.34 skrev Doug Cutting: > karl wettin wrote: >> This could lead me to believe I can use different boost for >> fields with the same name within one document. > > You can. The values are multiplied to produce the final boost > value for the field. This is described in: > > http://lucene.apache.org/java/docs/api/org/apache/lucene/document/ > Field.html#setBoost(float) It's not really the same thing as I tried to describe though. In the end it is the same boost for all field values. I would personally prefer to set that manually per unique field name. I have a hard time to figure out why I want to add multiple boosts and then normalise them. Is there some feature I missed? >> How about refactoring fields to something like: >> [Document](fieldName)<#>---- {0..1} ->[Field +boost]<#>---- {0..*} >> -> [FieldValue +store +index +termVector] > > That would be a big, incompatible change to one of Lucene's primary > APIs, no? Not if I got it right in my head. Then it's really just a matter of handling deprication. The field-methods in Document could be the same. > Long-term, an API which supports per token boosting will probably > prove useful, as a part of #11 on http://wiki.apache.org/jakarta- > lucene/Lucene2Whiteboard. When this happens it would probably be > worth considering making the change you suggest, but I'm not sure > it would be worth it before that. I've wanted that feature a few times. Let me know if there is something I can do to help when the time is right. --------------------------------------------------------------------- To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org For additional commands, e-mail: java-dev-help@lucene.apache.org