From java-user-return-63534-archive-asf-public=cust-asf.ponee.io@lucene.apache.org Sat Jan 27 15:43:33 2018 Return-Path: X-Original-To: archive-asf-public@eu.ponee.io Delivered-To: archive-asf-public@eu.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by mx-eu-01.ponee.io (Postfix) with ESMTP id 3657918065B for ; Sat, 27 Jan 2018 15:43:33 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 1FEA5160C30; Sat, 27 Jan 2018 14:43:33 +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 67072160C2F for ; Sat, 27 Jan 2018 15:43:32 +0100 (CET) Received: (qmail 54447 invoked by uid 500); 27 Jan 2018 14:43:30 -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 54435 invoked by uid 99); 27 Jan 2018 14:43:30 -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; Sat, 27 Jan 2018 14:43:30 +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 619D6180376 for ; Sat, 27 Jan 2018 14:43:29 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.879 X-Spam-Level: * X-Spam-Status: No, score=1.879 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] 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 DMYpiChUEh-p for ; Sat, 27 Jan 2018 14:43:28 +0000 (UTC) Received: from mail-it0-f44.google.com (mail-it0-f44.google.com [209.85.214.44]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 9F8A65F4EB for ; Sat, 27 Jan 2018 14:43:27 +0000 (UTC) Received: by mail-it0-f44.google.com with SMTP id 196so4705596iti.5 for ; Sat, 27 Jan 2018 06:43:27 -0800 (PST) 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=HPLJQlF3XX0+wZzOGw5UUVi8qsbAAo5+dGiiJ0b8n7g=; b=GZDe3QrKhdAs14RrQpojFzf/BbdvS1zFR1cq3lMMPdnuKr+B1cPxEJxQOZreJvSqFy txuNG4aR8zdegwR/0rJoLCTCOxxLG1OHZeLM0APtn96cQ79ULT0B1XOuVlcNeSigX3Rw ls4jgbRUDTBPe5ZrtZ3XPaKPwAJTJCh3kEH8jYxtCkQrYeD4JaUvW5a33TERHDJORFDs x7nNgnphhQRRecnGu1tj4FelGjjRDw5IGA75WaAnqXD0JEnU2sz5IHue2jOpE7wXbkX1 hoOYD0BLn+xT92NQ3dikOCVadO3i7Ard7Oj4cxRra2EmTb0g1z+jzxWp/v7Ecr+iUbTt sUtA== 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=HPLJQlF3XX0+wZzOGw5UUVi8qsbAAo5+dGiiJ0b8n7g=; b=HnLF63QhJijN/8L5egZZrH3NRUJsZUryzp7gVoWHoz6ZmY7KMPT/8Lf0oGIYbUH5S6 OWt/g7Wlnlc0Q0AebNHnZACiwSwzCDcepUCYsOQn5aVqcodLb1mt76Wj9zaQShUtJqGZ 8Wf+36cv/aZgrhNw8FVTAOAgR/LYX4P3HxDHhCogEwk+JdAcCyL8o1E9fuP2bnxz/7Ku 1fEVDdz49ZuMZXv3Xh6Ma7Q9NcxMl5eqcrx+vXBBJcLFohvwCWkj1IYFjgLx6oENhU6d 15wLfVGLLFYeUz1qnb4xfUK5jtQ/I/pP1isAFQ6dBUE4NfEJF8kYIM9v0SoyomlNG74d 6P0A== X-Gm-Message-State: AKwxytfAVJ8jxya9zarD2PDKrHeXwoA27WNm0v8ifXSro/FLUzswj92W cDzxf8hzWQOjv/8F26doFoj5eTqSgebUJUUfIjI= X-Google-Smtp-Source: AH8x227k0Ps6sVliJ7su8eir4NqemDhaq4Oa13Qnmqv9ci1QwhzH0s43bQHsHkrPezBOjd4yWkW7z6mhkMu8EhZk3Yo= X-Received: by 10.36.10.81 with SMTP id 78mr2422090itw.117.1517064199495; Sat, 27 Jan 2018 06:43:19 -0800 (PST) MIME-Version: 1.0 Received: by 10.79.197.7 with HTTP; Sat, 27 Jan 2018 06:43:18 -0800 (PST) In-Reply-To: References: From: Dwaipayan Roy Date: Sat, 27 Jan 2018 20:13:18 +0530 Message-ID: Subject: Re: Custom Similarity To: java-user@lucene.apache.org, msokolov@gmail.com Content-Type: multipart/alternative; boundary="001a113fc130b6630f0563c308cc" --001a113fc130b6630f0563c308cc Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Thanks for your replies. But still, I am not sure about the way to do the thing. Can you please provide me with an example code snippet or, link to some page where I can find one? Thanks.. On Tue, Jan 16, 2018 at 3:28 PM, Dwaipayan Roy wrote: > =E2=80=8BI want to make a scoring function that will score the documents = by the > following function: > given Q =3D {q1, q2, ... } > score(D,Q) =3D > for all qi: > SUM of { > LOG { weight_1(qi) + weight_2(qi) + weight_3(qi) } > } > > I have stored weight_1, weight_2 and weight_3 for all term of all > documents as payload, with payload delimiter =3D | (pipe) during indexing= . > > However, I am not sure on how to integrate all the weights during > retrieval. I am sure that I have to @Override some score() but not sure > about the exact class. > > Please help me here. > =E2=80=8B > Best, > Dwaipayan..=E2=80=8B > > --=20 Dwaipayan Roy. --001a113fc130b6630f0563c308cc--