lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Parit Bansal <Parit.Ban...@sib.swiss>
Subject Re: Help regarding BM25Similarity
Date Fri, 05 Jan 2018 09:37:17 GMT
Hi Robert,

passing b = 0 will influence the similarity across all the fields (no?) 
. I wanted it to be field specific. I think Uwe's suggestion of not 
indexing norms for specific fields should work better.

- Best
Parit Bansal


On 01/04/2018 08:34 PM, Robert Muir wrote:
> You don't need to do any subclassing for this: just pass parameter b=0
> to the constructor.
>
> On Thu, Jan 4, 2018 at 10:58 AM, Parit Bansal <Parit.Bansal@sib.swiss> wrote:
>> 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
>>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message