[ 
https://issues.apache.org/jira/browse/LUCENE-9646?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Patrick Marty updated LUCENE-9646:
----------------------------------
    Summary: Set BM25Similarity discountOverlaps via the constructor  (was: Set 
BM25Similarity discountOverlaps through the constructor)

> Set BM25Similarity discountOverlaps via the constructor
> -------------------------------------------------------
>
>                 Key: LUCENE-9646
>                 URL: https://issues.apache.org/jira/browse/LUCENE-9646
>             Project: Lucene - Core
>          Issue Type: Improvement
>          Components: core/search
>    Affects Versions: master (9.0)
>            Reporter: Patrick Marty
>            Priority: Trivial
>
> BM25Similarity discountOverlaps parameter is true by default.
> It can be set with 
> {{org.apache.lucene.search.similarities.BM25Similarity#setDiscountOverlaps}} 
> method.
> But this method makes BM25Similarity mutable.
>  
> discountOverlaps should be set via the constructor and 
> {{setDiscountOverlaps}} method should be removed to make BM25Similarity 
> immutable.
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org
For additional commands, e-mail: issues-h...@lucene.apache.org

Reply via email to