From solr-user-return-142190-archive-asf-public=cust-asf.ponee.io@lucene.apache.org Fri Jun 29 13:10:34 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 50BD3180663 for ; Fri, 29 Jun 2018 13:10:34 +0200 (CEST) Received: (qmail 93536 invoked by uid 500); 29 Jun 2018 11:10:32 -0000 Mailing-List: contact solr-user-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: solr-user@lucene.apache.org Delivered-To: mailing list solr-user@lucene.apache.org Received: (qmail 93525 invoked by uid 99); 29 Jun 2018 11:10:31 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 29 Jun 2018 11:10:31 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 65302C01C4 for ; Fri, 29 Jun 2018 11:10:31 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.312 X-Spam-Level: ** X-Spam-Status: No, score=2.312 tagged_above=-999 required=6.31 tests=[KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_PASS=-0.001, URI_HEX=1.313] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id HVF8xmd06flV for ; Fri, 29 Jun 2018 11:10:30 +0000 (UTC) Received: from n3.nabble.com (n3.nabble.com [162.255.23.22]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id DB30E5FB6A for ; Fri, 29 Jun 2018 11:10:29 +0000 (UTC) Received: from n3.nabble.com (localhost [127.0.0.1]) by n3.nabble.com (Postfix) with ESMTP id F2E67DBEECD2 for ; Fri, 29 Jun 2018 04:10:28 -0700 (MST) Date: Fri, 29 Jun 2018 04:10:28 -0700 (MST) From: Alessandro Benedetti To: solr-user@lucene.apache.org Message-ID: <1530270628834-0.post@n3.nabble.com> In-Reply-To: References: Subject: Re: Solr 7 MoreLikeThis boost calculation MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hi Jesse, you are correct, the variable 'bestScore' used in the createQuery(PriorityQueue q) should be "minScore". it is used to normalise the terms score : tq = new BoostQuery(tq, boostFactor * myScore / bestScore); e.g. Queue -> Term1:100 , Term2:50, Term3:20, Term4:10 The minScore will be 10 and the normalised score will be : Term1:10 , Term2:5, Term3:2, Term4:1 These values will be used to build the boost term queries. I see no particular problem with that. What is your concern ? ----- --------------- Alessandro Benedetti Search Consultant, R&D Software Engineer, Director Sease Ltd. - www.sease.io -- Sent from: http://lucene.472066.n3.nabble.com/Solr-User-f472068.html