Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 94732 invoked from network); 7 Dec 2010 06:09:49 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 7 Dec 2010 06:09:49 -0000 Received: (qmail 97530 invoked by uid 500); 7 Dec 2010 06:09:47 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 97137 invoked by uid 500); 7 Dec 2010 06:09:43 -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 97129 invoked by uid 99); 7 Dec 2010 06:09:43 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Dec 2010 06:09:43 +0000 X-ASF-Spam-Status: No, hits=1.5 required=10.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of ryan@glassdoor.com designates 69.50.2.26 as permitted sender) Received: from [69.50.2.26] (HELO EX16.myhostedexchange.com) (69.50.2.26) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Dec 2010 06:09:36 +0000 Received: from ex10.myhostedexchange.com ([69.50.2.26]) by EX16.myhostedexchange.com with Microsoft SMTPSVC(6.0.3790.4675); Mon, 6 Dec 2010 22:09:16 -0800 X-MimeOLE: Produced By Microsoft Exchange V6.5 x-cr-puzzleid: {01C6B20D-C923-46C1-A37A-EA469F8FC800} MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01CB95D5.3EAF83EA" x-cr-hashedpuzzle: AILd Bsxn CWPR ENeR EP7n Eq17 FLEU F1ZW GMXE GfSV G1Ou HldL JApj JFaN JJyw K6er;1;agBhAHYAYQAtAHUAcwBlAHIAQABsAHUAYwBlAG4AZQAuAGEAcABhAGMAaABlAC4AbwByAGcA;Sosha1_v1;7;{01C6B20D-C923-46C1-A37A-EA469F8FC800};cgB5AGEAbgBAAGcAbABhAHMAcwBkAG8AbwByAC4AYwBvAG0A;Tue, 07 Dec 2010 06:09:39 GMT;SABlAGwAcAAgAE8AdgBlAHIAcgBpAGQAaQBuAGcAIABiAGUAaABhAHYAaQBvAHIAIABpAG4AIABCAG8AbwBsAGUAYQBuAFEAdQBlAHIAeQAgAHMAYwBvAHIAZQByAA== Content-class: urn:content-classes:message Subject: Help Overriding behavior in BooleanQuery scorer Date: Mon, 6 Dec 2010 22:09:39 -0800 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Help Overriding behavior in BooleanQuery scorer Thread-Index: AcuV1VUJQNuOobxuQjGVj1dlW+x+FA== From: "Ryan Aylward" To: X-OriginalArrivalTime: 07 Dec 2010 06:09:16.0620 (UTC) FILETIME=[4740E8C0:01CB95D5] ------_=_NextPart_001_01CB95D5.3EAF83EA Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable I would like to customize the scoring of the BooleanQuery. The scoring for Boolean queries sums together each clause. Rather than summing together each clause, I would like to take the max score of any of the clauses. =20 Ideally, I would like to inherit from BooleanScorer and BooleanScorer2 and make a couple of very minor changes to it. Unfortunately, both classes are package protected and declared as final. This prevents me from being able to modify them at all. It seems the only way I can change this is to basically create a copy of a bunch of classes (BooleanQuery, BooleanWeight, BooleanScorer, BooleanScorer2, DisjunctionSumScorer, ConjunctionScorer, etc). =20 Does anyone know why many of those classes are package protected and final? Any suggestions for how to customize this part of the scoring algorithm without having to copy all of these classes? =20 Thanks, Ryan Aylward ------_=_NextPart_001_01CB95D5.3EAF83EA--