File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
server/src/main/java/org/elasticsearch/lucene/similarity Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -46,11 +46,6 @@ public LegacyBM25Similarity() {
46
46
this (new BM25Similarity ());
47
47
}
48
48
49
- private LegacyBM25Similarity (BM25Similarity bm25Similarity ) {
50
- super (bm25Similarity .getDiscountOverlaps ());
51
- this .bm25Similarity = bm25Similarity ;
52
- }
53
-
54
49
/**
55
50
* BM25 with the supplied parameter values.
56
51
* @param k1 Controls non-linear term frequency normalization (saturation).
@@ -59,7 +54,12 @@ private LegacyBM25Similarity(BM25Similarity bm25Similarity) {
59
54
* not within the range {@code [0..1]}
60
55
*/
61
56
public LegacyBM25Similarity (float k1 , float b , boolean discountOverlaps ) {
62
- this .bm25Similarity = new BM25Similarity (k1 , b , discountOverlaps );
57
+ this (new BM25Similarity (k1 , b , discountOverlaps ));
58
+ }
59
+
60
+ private LegacyBM25Similarity (BM25Similarity bm25Similarity ) {
61
+ super (bm25Similarity .getDiscountOverlaps ());
62
+ this .bm25Similarity = bm25Similarity ;
63
63
}
64
64
65
65
@ Override
You can’t perform that action at this time.
0 commit comments