Return-Path: Delivered-To: apmail-lucene-dev-archive@www.apache.org Received: (qmail 96950 invoked from network); 19 May 2010 14:21:19 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 19 May 2010 14:21:19 -0000 Received: (qmail 2878 invoked by uid 500); 19 May 2010 14:21:18 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 2788 invoked by uid 500); 19 May 2010 14:21:18 -0000 Mailing-List: contact dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@lucene.apache.org Delivered-To: mailing list dev@lucene.apache.org Received: (qmail 2781 invoked by uid 99); 19 May 2010 14:21:18 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 19 May 2010 14:21:18 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 19 May 2010 14:21:16 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o4JEKsCh013811 for ; Wed, 19 May 2010 14:20:54 GMT Message-ID: <14012421.13861274278854596.JavaMail.jira@thor> Date: Wed, 19 May 2010 10:20:54 -0400 (EDT) From: "Peter Keegan (JIRA)" To: dev@lucene.apache.org Subject: [jira] Updated: (LUCENE-2272) PayloadNearQuery has hardwired explanation for 'AveragePayloadFunction' MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/LUCENE-2272?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Peter Keegan updated LUCENE-2272: --------------------------------- Attachment: PNQ-patch1.txt Revisiting this because the PayloadFunction 'explain' methods return the wrong value and aren't thread safe, as Grant points out. A new patch is attached which eliminates the member variables. > PayloadNearQuery has hardwired explanation for 'AveragePayloadFunction' > ----------------------------------------------------------------------- > > Key: LUCENE-2272 > URL: https://issues.apache.org/jira/browse/LUCENE-2272 > Project: Lucene - Java > Issue Type: Bug > Components: Search > Reporter: Peter Keegan > Assignee: Grant Ingersoll > Attachments: payloadfunctin-patch.txt, PNQ-patch.txt, PNQ-patch1.txt > > > The 'explain' method in PayloadNearSpanScorer assumes the AveragePayloadFunction was used. This patch adds the 'explain' method to the 'PayloadFunction' interface, where the Scorer can call it. Added unit tests for 'explain' and for {Min,Max}PayloadFunction. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org For additional commands, e-mail: dev-help@lucene.apache.org