Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 6B50A200D44 for ; Mon, 20 Nov 2017 19:22:35 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 6A0DC160BF9; Mon, 20 Nov 2017 18:22:35 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id AF9B4160BE1 for ; Mon, 20 Nov 2017 19:22:34 +0100 (CET) Received: (qmail 31699 invoked by uid 500); 20 Nov 2017 18:22:33 -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 31687 invoked by uid 99); 20 Nov 2017 18:22:33 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 20 Nov 2017 18:22:33 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 5850A1A221F for ; Mon, 20 Nov 2017 18:22:32 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.901 X-Spam-Level: X-Spam-Status: No, score=-0.901 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_H2=-2.8, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id hEyO3FjCs8Sv for ; Mon, 20 Nov 2017 18:22:30 +0000 (UTC) Received: from mail-wr0-f176.google.com (mail-wr0-f176.google.com [209.85.128.176]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 1BCC15FBEA for ; Mon, 20 Nov 2017 18:22:30 +0000 (UTC) Received: by mail-wr0-f176.google.com with SMTP id y42so8961937wrd.3 for ; Mon, 20 Nov 2017 10:22:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=gLfIDBeG6iTDvFK9Lg9mAU5NUAM7oBoYZzcouK9fnQQ=; b=h/sLVmRaEtb2O7JQTcf6xEUp/2PJd1rNzUPrePleDXFb138BCJAmchw87YYRYPvlfs rDhBnsCnIvphBcIDliYXY0xoSPJ6hy9Hx/aKK0PiMUE/sKmjOOKfPR49G38Pdu1dSaBC tRNvSCpipnJpxIFJJpWT17Hvfqrn0BRH+LVSDVPQQnDaJL4cW5GmWdM2/ZBQ3rnMbq9b prP15qM8GWt2/U0fQ1Tw1Tf2eF+tzprCl4pyZySH5z3NFj4mLdZMWcUhPWjAasyxCjZI Wd2E+/4Lb58tMuAS8goOQ4JPRjKe0RtEjMY2kVX21J2/Z3jCRHNhw7sDKrtKmUUN0J9N UVLg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=gLfIDBeG6iTDvFK9Lg9mAU5NUAM7oBoYZzcouK9fnQQ=; b=WpWGI0MlRyV+lhrq0zLv+AAl5qRphVE37JFPz/U3VXJmSv5JlvAYa6zWDx+I7EqvI4 SlJD60pcsbF/N9vjfuTd/M+zgHKNqrmIwQVAXHJvJ0Htv+cBfC2+r/iczrorW0+61F9O RTYlBSHxv9VWB6Ll6WUzETXqj7cX2H+ZPNLHc8FiDJpMkg444OO1gCb411zkwLvgFDmj o5npQYrjhnLI7Iqnr8TNit5KYcJhHtPlwbOAaPPU9D1qF370aCtlAHLjgGs2ehd/osKj QZurj2uE8C1Ebk8f950RughRJzTn2HU1DovuLSGKSXHjlc7Hs1YOd+8xGHqB6r4K6jap 7IxA== X-Gm-Message-State: AJaThX64C9KPnujHr8LsM/DpsV7nivo6rY3RxyKpmkCTdZrtxtxEiaeD zb8e+PsMbfXRNPj0+FmuXl0HhwYZjEbV6+CJiPo= X-Google-Smtp-Source: AGs4zMYKe9zItEBwcaQIw2Qx8zq3M39zi0+BPPJI+u6iyjtqh6l8pWG385Kb1muEKC7IMn9j7BNiV9HFcYIVRYG3PGM= X-Received: by 10.223.131.129 with SMTP id 1mr11809875wre.205.1511202148815; Mon, 20 Nov 2017 10:22:28 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Adrien Grand Date: Mon, 20 Nov 2017 18:22:18 +0000 Message-ID: Subject: Re: Custom scoring algorithm and Explanation extending. To: java-user@lucene.apache.org Content-Type: multipart/alternative; boundary="94eb2c0d23264396cc055e6e2b4b" archived-at: Mon, 20 Nov 2017 18:22:35 -0000 --94eb2c0d23264396cc055e6e2b4b Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Vadim, Le jeu. 16 nov. 2017 =C3=A0 18:09, Vadim Gindin a = =C3=A9crit : > 1. I would like to use my custom scoring algorithm. Is it make sense to u= se > Lucene with other scoring algorithm? What is the best way for that - > implement Similarity and own Queries? > It really depends what you are after. Similarity is the right entry point if you want to configure how term queries compute their score based on index statistics. If this is not flexible enough for you then you will need to implement a custom query. > 2. I'm reasearching Elasticsearch/Lucene capabilities. Elastichsearch > contains request parameter "explain" that uses Lucene's Explanation class > under the hood. But this class covers only scoring aspects. I would like = to > include matching logic details there. It seems a good place but this clas= s > is final.. > Well, you can already do that today, just add sub explanations and put what you need in the explanation description. If the float value is irrelevant, you can just pass a dummy value. --94eb2c0d23264396cc055e6e2b4b--