From java-user-return-63478-archive-asf-public=cust-asf.ponee.io@lucene.apache.org Fri Jan 5 10:35:07 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 F422C180647 for ; Fri, 5 Jan 2018 10:35:06 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id E443D160C19; Fri, 5 Jan 2018 09:35:06 +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 363EF160C27 for ; Fri, 5 Jan 2018 10:35:06 +0100 (CET) Received: (qmail 2930 invoked by uid 500); 5 Jan 2018 09:35:04 -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 2654 invoked by uid 99); 5 Jan 2018 09:35:04 -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; Fri, 05 Jan 2018 09:35:04 +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 C56F11808BD for ; Fri, 5 Jan 2018 09:35:03 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -2.402 X-Spam-Level: X-Spam-Status: No, score=-2.402 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (1024-bit key) header.d=sib.swiss Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id dtGaoHU1RTzH for ; Fri, 5 Jan 2018 09:35:00 +0000 (UTC) Received: from bell.isb-sib.ch (bell-sib.unige.ch [192.33.215.135]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 7E7BA5F3B5 for ; Fri, 5 Jan 2018 09:35:00 +0000 (UTC) Received: from bell (bell.isb-sib.ch [192.33.215.135]) by bell.isb-sib.ch with ESMTP id w059Ym8A001104 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 5 Jan 2018 10:34:49 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sib.swiss; s=bellswiss; t=1515144896; bh=Cge4cFZkDjmzKSEejZfv0hi6PpVCc9P1wWgOa6pTQpA=; h=Subject:To:References:From:Date:In-Reply-To:From; b=dgnMnsQ7ZY7904LFZQoMUUBTYSaWbfLQhgHraqZuCXEeZtffX0TQjY9oMEQwryu/S BWK8DTDz4Vx0aMAwQBy32CJGUjtJdww94HyIm219Viczwij0HJE/ktp4xawwsTEVGl pFeCRDatI0cAQfhuMTO2vRfoXV6rBIwbLOSjPbfg= Subject: Re: Help regarding BM25Similarity To: java-user@lucene.apache.org, Uwe Schindler References: From: Parit Bansal Message-ID: <6bb52530-07a4-b045-298d-c9c08c8faaab@sib.swiss> Date: Fri, 5 Jan 2018 10:34:48 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-MailScanner-Information: @sib.swiss Please contact SIB for more information X-MailScanner-ID: @sib.swiss w059Ym8A001104 X-MailScanner: @sib.swiss Found to be clean X-MailScanner-From: @sib.swiss parit.bansal@sib.swiss Hi Uwe, You are right. Thankx! :) - Best Parit Bansal On 01/04/2018 05:02 PM, Uwe Schindler wrote: > How about just indexing the field without norms? > > Uwe > > Am January 4, 2018 3:58:27 PM UTC schrieb Parit Bansal : >> Hi, >> >> I am trying to tweak BM25Similarity for my use case wherein, I want to >> avoid the effects of field-length normalization for certain fields >> (return a constant value irrespective of how long was the document). >> Currently, both computeWeight and computeNorm methods are defined final >> >> in BM25Similarity. >> >> In ClassicSimilarity, same was possible by overriding the lengthNorm >> method. Is there a way around in BM25Similarity? Is there a possibility >> >> to change it to non-final methods in new releases? >> >> - Best >> >> Parit Bansal >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org >> For additional commands, e-mail: java-user-help@lucene.apache.org > -- > Uwe Schindler > Achterdiek 19, 28357 Bremen > https://www.thetaphi.de --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org