Uploaded image for project: 'Lucene - Core'
  1. Lucene - Core
  2. LUCENE-9646

Set BM25Similarity discountOverlaps via the constructor

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • 9.0
    • 9.0
    • core/search
    • None
    • New

    Description

      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.

       

      PR https://github.com/apache/lucene-solr/pull/2161

      Attachments

        Issue Links

          Activity

            People

              broustant Bruno Roustant
              pmarty Patrick Marty
              Votes:
              1 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 40m
                  40m