Return-Path: Delivered-To: apmail-jakarta-lucene-user-archive@www.apache.org Received: (qmail 18850 invoked from network); 12 Dec 2004 08:32:02 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 12 Dec 2004 08:32:02 -0000 Received: (qmail 76115 invoked by uid 500); 12 Dec 2004 08:31:56 -0000 Delivered-To: apmail-jakarta-lucene-user-archive@jakarta.apache.org Received: (qmail 76096 invoked by uid 500); 12 Dec 2004 08:31:56 -0000 Mailing-List: contact lucene-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Lucene Users List" Reply-To: "Lucene Users List" Delivered-To: mailing list lucene-user@jakarta.apache.org Received: (qmail 76082 invoked by uid 99); 12 Dec 2004 08:31:56 -0000 X-ASF-Spam-Status: No, hits=1.0 required=10.0 tests=SPF_HELO_SOFTFAIL X-Spam-Check-By: apache.org Received-SPF: neutral (hermes.apache.org: local policy) Received: from keyserver.Rescomp.Berkeley.EDU (HELO rescomp.berkeley.edu) (169.229.70.167) by apache.org (qpsmtpd/0.28) with ESMTP; Sun, 12 Dec 2004 00:31:55 -0800 Received: by rescomp.berkeley.edu (Postfix, from userid 1007) id 615D15B7AC; Sun, 12 Dec 2004 00:31:48 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by rescomp.berkeley.edu (Postfix) with ESMTP id 6037D7F460 for ; Sun, 12 Dec 2004 00:31:48 -0800 (PST) Date: Sun, 12 Dec 2004 00:31:48 -0800 (PST) From: Chris Hostetter Sender: hossman@hal.rescomp.berkeley.edu To: Lucene Users List Subject: Re: Customizing termFreq In-Reply-To: Message-ID: References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N : H1:"text in H1 font" : H2:"text in H2 font" : content:"all the text" : : The problem is that query of a type : +(H1:xyz) : is getting scored with the termFreq of xyz in the H1 field whereas I want : it be scored using the termFreq of xyz in the entire document (i.e. : content field) so why not query for "+(content:xyz)" .. or is the problem that you only want to get back docs with xyz in an H1, but you want the score based on the whole doc? if that's the case, then construct a Filter with the requirement of (H1:xyz) and make youre query (content:xyz) -Hoss --------------------------------------------------------------------- To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: lucene-user-help@jakarta.apache.org