|
20 | 20 | import org.apache.lucene.search.similarities.Similarity.SimScorer; |
21 | 21 | import org.apache.lucene.util.BytesRef; |
22 | 22 | import org.elasticsearch.common.TriFunction; |
23 | | -import org.elasticsearch.common.logging.DeprecationCategory; |
24 | | -import org.elasticsearch.common.logging.DeprecationLogger; |
25 | 23 | import org.elasticsearch.common.settings.Settings; |
26 | 24 | import org.elasticsearch.common.util.Maps; |
27 | 25 | import org.elasticsearch.core.Nullable; |
|
40 | 38 | import java.util.function.Supplier; |
41 | 39 |
|
42 | 40 | public final class SimilarityService { |
43 | | - private static final DeprecationLogger deprecationLogger = DeprecationLogger.getLogger(SimilarityService.class); |
44 | 41 | public static final String DEFAULT_SIMILARITY = "BM25"; |
45 | 42 | private static final Map<String, Function<IndexVersion, Supplier<Similarity>>> DEFAULTS; |
46 | 43 | public static final Map<String, TriFunction<Settings, IndexVersion, ScriptService, Similarity>> BUILT_IN; |
@@ -115,13 +112,6 @@ public SimilarityService( |
115 | 112 | defaultSimilarity = (providers.get("default") != null) |
116 | 113 | ? providers.get("default").get() |
117 | 114 | : providers.get(SimilarityService.DEFAULT_SIMILARITY).get(); |
118 | | - if (providers.get("base") != null) { |
119 | | - deprecationLogger.warn( |
120 | | - DeprecationCategory.QUERIES, |
121 | | - "base_similarity_ignored", |
122 | | - "The [base] similarity is ignored since query normalization and coords have been removed" |
123 | | - ); |
124 | | - } |
125 | 115 | } |
126 | 116 |
|
127 | 117 | /** |
|
0 commit comments