From solr-user-return-140837-archive-asf-public=cust-asf.ponee.io@lucene.apache.org Tue Apr 24 22:21:47 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 80126180671 for ; Tue, 24 Apr 2018 22:21:46 +0200 (CEST) Received: (qmail 12015 invoked by uid 500); 24 Apr 2018 20:21:44 -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 12002 invoked by uid 99); 24 Apr 2018 20:21:43 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Apr 2018 20:21:43 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 51E27180119 for ; Tue, 24 Apr 2018 20:21:43 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.88 X-Spam-Level: * X-Spam-Status: No, score=1.88 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001, WEIRD_PORT=0.001] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id 80QgwCgKQtZJ for ; Tue, 24 Apr 2018 20:21:42 +0000 (UTC) Received: from mail-qt0-f171.google.com (mail-qt0-f171.google.com [209.85.216.171]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id BB9905F175 for ; Tue, 24 Apr 2018 20:21:41 +0000 (UTC) Received: by mail-qt0-f171.google.com with SMTP id a25-v6so23952395qtm.1 for ; Tue, 24 Apr 2018 13:21:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=s9LU92bkrLJLAxNB/dDvaMFiR1VkivU3wNoyBzBs2yU=; b=Xp1CKN3l2ovLmAQJBQvqdN+mFtO2+b+pmmv/oivtGrINLVcEUWv0tSn+/UGkywAVRl WBEYlH2TYEy/Lbez9I96bC+MGlscc+L9HMf6Kh+wHazTuzKbcWS2N9d6ixYbP1tE8zC1 qt5BZNO3XKiGDFq8P4Cy+hdbEj4EmCuBcIHiEY2eJL/XNMq2gb9D3tiFLNsTqD5caa8B Hc9FXRE6mBNdugpZ1AY0CARlQilKrzELGjzn/T4MFYeIXx+RAXkiySjcbzEnZUM3NBWe jlLOXp0MWDjipYpnTIE5y3lyiOew28dOKE7Qi3lV5wn6lkeitqOw0l7KBFv6vOX4qTHK ozxw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=s9LU92bkrLJLAxNB/dDvaMFiR1VkivU3wNoyBzBs2yU=; b=jqpqyBnaMP6G1iazUBLK0N612z/tJezyqNdv22ReSCSpBrB05WFK+rbPYGA9xjJuRC Q7Vo/fhwsbojiULPnvfDLSW1OxHzCn9Z9oRQ3PcEADlIXWjVC3NfiQBh1eeqN1/OQzRb R0nBNPhpQpa5kLGu2eQ5ROnaqG/3QXTeDBFYhnccoCWhHurleq5aAny4Pq2gLRhcYdBX LeJIjDK91mfb6QjtetA9r6qmg7L+z8hJotJQeL8aw8287B6EzD41EM/X0RCVGrtzcZmC 9dfSxueQX/Q0hd/LVAcjMYLMIASnbTt3+1kkLXxUWUbx1gsxZnl+2FDGLF6WwnjoOqEl yZaQ== X-Gm-Message-State: ALQs6tBJ8V+lVnBYJVndWBpykMzNUqDm85tvuQLA7rh/P7JdQdbyp6Qm 60kLBoWygb70jxTIn1I6X57wBIijTOwJg82igrAM5w== X-Google-Smtp-Source: AB8JxZrUj++E5g+NWiMMNKCBoCV8RvpGsmghbZHJVb98R4v9/nNfN/kzRzJomIOSXkR4ESRjvVg5CMdbcy2vr+OtN40= X-Received: by 2002:ac8:72da:: with SMTP id o26-v6mr26982976qtp.23.1524601300508; Tue, 24 Apr 2018 13:21:40 -0700 (PDT) MIME-Version: 1.0 Received: by 10.237.53.10 with HTTP; Tue, 24 Apr 2018 13:21:39 -0700 (PDT) In-Reply-To: References: From: Nawab Zada Asad Iqbal Date: Tue, 24 Apr 2018 13:21:39 -0700 Message-ID: Subject: Re: Solr 7.3 debug/explain with boost applied To: solr-user@lucene.apache.org Content-Type: multipart/alternative; boundary="000000000000f0e64d056a9de62c" --000000000000f0e64d056a9de62c Content-Type: text/plain; charset="UTF-8" I didn't know you can add boosts like that (&boost=2 ). Are you boosting on a field or document by using that syntax? On Sun, Apr 22, 2018 at 10:51 PM, Ryan Yacyshyn wrote: > Hi all, > > When viewing the explain under debug=true in Solr 7.3.0 using > the edismax query parser with a boost, I only see the "boost" part of the > explain. Without applying a boost I see the full explain. Is this the > expected behaviour? > > Here's how to check using the techproducts example.. > > bin/solr -e techproducts > > ``` > http://localhost:8983/solr/techproducts/select?q={! > edismax}samsung&qf=name&debug=true > ``` > > returns: > > ``` > "debug": { > "rawquerystring": "{!edismax}samsung", > "querystring": "{!edismax}samsung", > "parsedquery": "+DisjunctionMaxQuery((name:samsung))", > "parsedquery_toString": "+(name:samsung)", > "explain": { > "SP2514N": "\n2.3669035 = weight(name:samsung in 1) > [SchemaSimilarity], result of:\n 2.3669035 = score(doc=1,freq=1.0 = > termFreq=1.0\n), product of:\n 2.6855774 = idf, computed as log(1 + > (docCount - docFreq + 0.5) / (docFreq + 0.5)) from:\n 1.0 = docFreq\n > 21.0 = docCount\n 0.8813388 = tfNorm, computed as (freq * (k1 + 1)) > / (freq + k1 * (1 - b + b * fieldLength / avgFieldLength)) from:\n 1.0 > = termFreq=1.0\n 1.2 = parameter k1\n 0.75 = parameter b\n > 7.5238094 = avgFieldLength\n 10.0 = fieldLength\n" > }, > "QParser": "ExtendedDismaxQParser", > ... > ``` > > If I just add &boost=2 to this, I get this explain back: > > ``` > "debug": { > "rawquerystring": "{!edismax}samsung", > "querystring": "{!edismax}samsung", > "parsedquery": "FunctionScoreQuery(FunctionScoreQuery(+(name:samsung), > scored by boost(const(2))))", > "parsedquery_toString": "FunctionScoreQuery(+(name:samsung), scored by > boost(const(2)))", > "explain": { > "SP2514N": "\n4.733807 = product of:\n 1.0 = boost\n 4.733807 = > boost(const(2))\n" > }, > "QParser": "ExtendedDismaxQParser", > ... > ``` > > Is this normal? I was expecting to see more like the first example, with > the addition of the boost applied. > > Thanks, > Ryan > --000000000000f0e64d056a9de62c--