Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 85279 invoked from network); 5 Apr 2008 17:27:57 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 5 Apr 2008 17:27:57 -0000 Received: (qmail 76752 invoked by uid 500); 5 Apr 2008 17:27:51 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 76716 invoked by uid 500); 5 Apr 2008 17:27:51 -0000 Mailing-List: contact java-user-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-user@lucene.apache.org Delivered-To: mailing list java-user@lucene.apache.org Received: (qmail 76698 invoked by uid 99); 5 Apr 2008 17:27:51 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 05 Apr 2008 10:27:51 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of karl.wettin@gmail.com designates 64.233.182.187 as permitted sender) Received: from [64.233.182.187] (HELO nf-out-0910.google.com) (64.233.182.187) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 05 Apr 2008 17:27:08 +0000 Received: by nf-out-0910.google.com with SMTP id d3so267626nfc.15 for ; Sat, 05 Apr 2008 10:27:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:user-agent:mime-version:to:subject:references:in-reply-to:content-type:content-transfer-encoding; bh=FDNgo7W67s5c5O4clF26wnX3j2Qa70x35sGnH0PJu5U=; b=qqa4x4dcEVX4HaQfw75sAEZZgs5vEm8CY1Yc0y0TR9tjTwyJGXV5phf11dwWU1B/RFI6m8jcbFFEewCZbnWKoGQcEdRCf9gOTkhu2T0XimVN2QYn9kbvjvDfo3S2BiS/g+1zZnP+htW/I1jt7rYc2it7lnkHRNiJV2wbpeF4DdM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references:in-reply-to:content-type:content-transfer-encoding; b=R8uDVGAcwphatt4bEsZokk9liTdkfgJTPgJKq53yyRyWILWRCHQS7p/ECqdcdky9MHs/8EatHgn41mTevDqAbisbpzVAkUcjqFP/w1UpKccniVNXPgZEPjNHfufmErUAJd9y9nuBzkgS77c0oQSnSkmCoPvrU+xutJya3KkxF/s= Received: by 10.151.43.19 with SMTP id v19mr1434746ybj.195.1207416438645; Sat, 05 Apr 2008 10:27:18 -0700 (PDT) Received: from kodapan.lan ( [82.93.70.124]) by mx.google.com with ESMTPS id 31sm2387074ugg.47.2008.04.05.10.27.16 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sat, 05 Apr 2008 10:27:17 -0700 (PDT) Message-ID: <47F7B672.1080803@gmail.com> Date: Sat, 05 Apr 2008 19:27:14 +0200 From: Karl Wettin User-Agent: Thunderbird 2.0.0.12 (Macintosh/20080213) MIME-Version: 1.0 To: java-user@lucene.apache.org Subject: Re: document boost and omitted norms References: <47F6C8D1.6080005@gmail.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Michael McCandless skrev: > Karl Wettin wrote: >> Is it so that document and field boosts are omitted together with >> Field#setOmitNorms? By setting lengthNorm to 1f in the Similarity for >> these fields and not omitting norms would fix it? > > > Yes and yes. I'm not sure if I do these things backwards or what, but in this case the resolution of the 8 bit float of norms is not enough for me. So I patched the norms float table in Similarity to handle the boost values I assign my documents. Discretized 100f-250f in 60 bags and cought up with the default table in 16 more bags. But to me it seem as this only works if I also turn off length normalization for all the other fields in my index, as they will affect the value of the norm? I could store it in the payloads of my tokens too, but I really don't want payloads on all of them. Now I'm thinking it would be nice to store a full float in an optional document boost file. Perhaps with variable bytesize. But that would take a lot of effort to update all related code. Is there an easier way out here? Perhaps variable byte size per norms and field? Document payloads? I don't know. Help much appreciated. karl --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org