Return-Path: X-Original-To: apmail-lucene-dev-archive@www.apache.org Delivered-To: apmail-lucene-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 94003FE8A for ; Tue, 16 Apr 2013 21:57:19 +0000 (UTC) Received: (qmail 98970 invoked by uid 500); 16 Apr 2013 21:57:17 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 98893 invoked by uid 500); 16 Apr 2013 21:57:17 -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 98851 invoked by uid 99); 16 Apr 2013 21:57:17 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Apr 2013 21:57:17 +0000 Date: Tue, 16 Apr 2013 21:57:17 +0000 (UTC) From: "Michael McCandless (JIRA)" To: dev@lucene.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (LUCENE-4935) CustomScoreQuery has broken boosting MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/LUCENE-4935?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13633441#comment-13633441 ] Michael McCandless commented on LUCENE-4935: -------------------------------------------- +1 for the 2nd approach. > CustomScoreQuery has broken boosting > ------------------------------------ > > Key: LUCENE-4935 > URL: https://issues.apache.org/jira/browse/LUCENE-4935 > Project: Lucene - Core > Issue Type: Bug > Components: core/query/scoring > Reporter: Robert Muir > Attachments: LUCENE-4935.patch, LUCENE-4935.patch > > > CustomScoreQuery wrongly applies boost^2 instead of boost. > It wrongly incorporates its boost into the normalization factor passed down to subquery (like booleanquery does) and *also* multiplies it directly in its scorer. > The only reason the test passes today is because it compares raw score magnitudes when querynorm is on, which normalizes this away. > Changing the test to use newSearcher() demonstrates the brokenness. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org For additional commands, e-mail: dev-help@lucene.apache.org