Return-Path: Delivered-To: apmail-jakarta-lucene-user-archive@www.apache.org Received: (qmail 11841 invoked from network); 9 Dec 2004 21:36:17 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 9 Dec 2004 21:36:17 -0000 Received: (qmail 79781 invoked by uid 500); 9 Dec 2004 21:36:08 -0000 Delivered-To: apmail-jakarta-lucene-user-archive@jakarta.apache.org Received: (qmail 79754 invoked by uid 500); 9 Dec 2004 21:36:08 -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 79712 invoked by uid 99); 9 Dec 2004 21:36:07 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=RCVD_BY_IP,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: domain of jharuska@gmail.com designates 64.233.170.195 as permitted sender) Received: from rproxy.gmail.com (HELO rproxy.gmail.com) (64.233.170.195) by apache.org (qpsmtpd/0.28) with ESMTP; Thu, 09 Dec 2004 13:36:05 -0800 Received: by rproxy.gmail.com with SMTP id z35so360738rne for ; Thu, 09 Dec 2004 13:36:02 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type:content-transfer-encoding; b=gQz7DOfpxAW20mtwcFVJJtZQGvyH2l6eXgkgCYcQH9Y3swCa65XIM89+k4XuFU3w5gGCl7562XjPSSHpHDVD76zlP8+78HJSazRwRySxnQwTILawkQC8IoUJdj/omrN3xwcgGD35VSe8vC0BdPyrDX08i5GptrGQWai7DN6P1Rw= Received: by 10.38.14.54 with SMTP id 54mr258656rnn; Thu, 09 Dec 2004 13:36:02 -0800 (PST) Received: by 10.38.101.62 with HTTP; Thu, 9 Dec 2004 13:36:02 -0800 (PST) Message-ID: <5fbbcd1404120913367730f909@mail.gmail.com> Date: Thu, 9 Dec 2004 16:36:02 -0500 From: Jason Haruska Reply-To: Jason Haruska To: Lucene Users List Subject: Coordination value Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N I would like to adjust the score lucene is returning to use the coordination component more. For example, I have a BooleanQuery containing three TermQueries. I would like to adjust the score so that documents containing all three terms appear first, followed by docs that contain only two of the terms, followed by documents that contain only one of the terms. I understand that the coordination is a component of the overall document score currently, but I'd like to make it more absolute. I was wondering if someone on the list has done something similar. I have implemented a hack that works by adding a function to the BooleanWeight class but it is very slow. I believe it is inefficient because it uses the Explanation class to get the coordination value. There must be an easier way that I'm missing. --------------------------------------------------------------------- To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: lucene-user-help@jakarta.apache.org