Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 95745 invoked from network); 6 Nov 2008 13:01:16 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 6 Nov 2008 13:01:16 -0000 Received: (qmail 20990 invoked by uid 500); 6 Nov 2008 13:01:17 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 20755 invoked by uid 500); 6 Nov 2008 13:01:16 -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 20744 invoked by uid 99); 6 Nov 2008 13:01:16 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Nov 2008 05:01:16 -0800 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [208.97.132.83] (HELO spunkymail-a2.g.dreamhost.com) (208.97.132.83) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Nov 2008 12:59:59 +0000 Received: from [192.168.0.3] (adsl-074-229-189-244.sip.rmo.bellsouth.net [74.229.189.244]) by spunkymail-a2.g.dreamhost.com (Postfix) with ESMTP id 9DA1E87135 for ; Thu, 6 Nov 2008 05:00:10 -0800 (PST) Message-Id: <6DA15CC7-01F9-4DF1-AEAD-D92CAACDA9F8@apache.org> From: Grant Ingersoll To: java-user@lucene.apache.org In-Reply-To: Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v929.2) Subject: Re: BoostingTermQuery scoring Date: Thu, 6 Nov 2008 08:00:08 -0500 References: X-Mailer: Apple Mail (2.929.2) X-Virus-Checked: Checked by ClamAV on apache.org Not sure, but it sounds like you are interested in a higher level Query, kind of like the BooleanQuery, but then part of it sounds like it is per document, right? Is it that you want to deal with multiple payloads in a document, or multiple BTQs in a bigger query? On Nov 4, 2008, at 9:42 AM, Peter Keegan wrote: > I'm using BoostingTermQuery to boost the score of documents with terms > containing payloads (boost value > 1). I'd like to change the scoring > behavior such that if a query contains multiple BoostingTermQuery > terms > (either required or optional), documents containing more matching > terms with > payloads always score higher than documents with fewer terms with > payloads. > Currently, if one of the terms has a high IDF weight and contains a > boosting > payload but no payloads on other matching terms, it may score higher > than > docs with other matching terms with payloads and lower IDF. > > I think what I need is a way to increase the weight of a matching > term in > BoostingSpanScorer.score() if 'payloadsSeen > 0', but I don't see > how to do > this. Any suggestions? > > Thanks, > Peter -------------------------- Grant Ingersoll Lucene Helpful Hints: http://wiki.apache.org/lucene-java/BasicsOfPerformance http://wiki.apache.org/lucene-java/LuceneFAQ --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org