Return-Path: X-Original-To: apmail-lucene-java-user-archive@www.apache.org Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 5E2679E69 for ; Tue, 6 Mar 2012 21:46:51 +0000 (UTC) Received: (qmail 77895 invoked by uid 500); 6 Mar 2012 21:46:49 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 77840 invoked by uid 500); 6 Mar 2012 21:46:49 -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 77832 invoked by uid 99); 6 Mar 2012 21:46:49 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Mar 2012 21:46:48 +0000 X-ASF-Spam-Status: No, hits=2.3 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FORGED_REPLYTO,FREEMAIL_REPLYTO_END_DIGIT,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of paul_t100@fastmail.fm designates 66.111.4.29 as permitted sender) Received: from [66.111.4.29] (HELO out5-smtp.messagingengine.com) (66.111.4.29) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Mar 2012 21:46:42 +0000 Received: from compute2.internal (compute2.nyi.mail.srv.osa [10.202.2.42]) by gateway1.nyi.mail.srv.osa (Postfix) with ESMTP id 3E8DE20981 for ; Tue, 6 Mar 2012 16:46:22 -0500 (EST) Received: from frontend2.nyi.mail.srv.osa ([10.202.2.161]) by compute2.internal (MEProxy); Tue, 06 Mar 2012 16:46:22 -0500 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=fastmail.fm; h= message-id:date:from:reply-to:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; s=mesmtp; bh=UPWU0wtfw+shlXSBHXLMeIr1GUk=; b=ALuR/ux9cfE7vDyeYqFVVvbC9J3k hLYsmsIQQ7xnTvELrGKTe+yj98NJ5HozbiogJu4JiEE06LjTpUDaJFSJvgiZbXCQ NofYSk+uytKzYITFQZeevQHd1al67K2lSG3RUVDNHYt11OyfxpyNxRd9yQ+KTdYp +9nKLgFgEzgyfKA= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=message-id:date:from:reply-to :mime-version:to:subject:references:in-reply-to:content-type :content-transfer-encoding; s=smtpout; bh=UPWU0wtfw+shlXSBHXLMeI r1GUk=; b=g/YyDdAO1HTjZU8uul34/E3puCdrwQa7s+AOXyOaZzgbmdGKHz0dl8 zdeqWFdQzbeOhk33lZTVKixudd/jeMp/pLgS621c9eKJ3/6apDpb+q4Yit4gf6rA MZrTRIE10P4S34T7SvOJPace3nTiGJptvEG6uBuItf1EzH6mocC3c= X-Sasl-enc: Db9Huz98rQu8S/D/JcpXCAWXds9wBmZ+9jZXLpW7yU6n 1331070381 Received: from [192.168.1.66] (unknown [217.155.98.246]) by mail.messagingengine.com (Postfix) with ESMTPSA id C611B4825DE for ; Tue, 6 Mar 2012 16:46:21 -0500 (EST) Message-ID: <4F568621.1050306@fastmail.fm> Date: Tue, 06 Mar 2012 21:48:17 +0000 From: Paul Taylor Reply-To: paul_t100@fastmail.fm User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:10.0.2) Gecko/20120216 Thunderbird/10.0.2 MIME-Version: 1.0 To: java-user@lucene.apache.org Subject: Re: How disabling norms on a field effects other fields References: <4F56852F.2090804@fastmail.fm> In-Reply-To: <4F56852F.2090804@fastmail.fm> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org On 06/03/2012 21:44, Paul Taylor wrote: > I have a number of fields that either only ever have a term frequency > of 1 or I don't want them to be disavantaged if they do have a greater > term frequency, and I never boost the field so I disable norms for > these fields with Field.Index.ANALYZED_NO_NORM or > Field.Index.NOT_ANALYZED_NO_NORM. > > But if I'm searching using two fields > > i.e > > a:term1 OR b:term2 > > and A has norms enabled and B doesn't, doesnt't that mean that > documents that match B are more likely to score better than documents > that match A because when the score for a document matching just A > will end up with a lower score in the weight = tf * idf * fieldnorm > calculation. > > Thats not what I wanted, I just wanted a document matching on field B > which contained three terms to score as well as a match on a document > field B with one term > > Have I understood this right, if so what the solution ? > Sorry , quick correction when I say Term Frequency I don't mean tf (i.e matching terms), I just mean Number of Terms in the Field Paul --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org