2021-05-28 16:04:59 +02:00
|
|
|
package it.cavallium.dbengine.client;
|
|
|
|
|
|
|
|
import it.cavallium.dbengine.lucene.analyzer.TextFieldsSimilarity;
|
|
|
|
import java.util.Map;
|
|
|
|
|
2022-03-05 15:46:40 +01:00
|
|
|
public class IndicizerSimilarities {
|
2021-05-28 16:04:59 +02:00
|
|
|
|
2022-03-05 15:46:40 +01:00
|
|
|
public static it.cavallium.dbengine.rpc.current.data.IndicizerSimilarities of() {
|
2022-01-11 22:23:07 +01:00
|
|
|
return of(TextFieldsSimilarity.BM25Standard);
|
2021-05-28 16:04:59 +02:00
|
|
|
}
|
|
|
|
|
2022-03-05 15:46:40 +01:00
|
|
|
public static it.cavallium.dbengine.rpc.current.data.IndicizerSimilarities of(TextFieldsSimilarity defaultSimilarity) {
|
2021-05-28 16:04:59 +02:00
|
|
|
return of(defaultSimilarity, Map.of());
|
|
|
|
}
|
|
|
|
|
2022-03-05 15:46:40 +01:00
|
|
|
public static it.cavallium.dbengine.rpc.current.data.IndicizerSimilarities of(TextFieldsSimilarity defaultSimilarity,
|
|
|
|
Map<String, TextFieldsSimilarity> fieldSimilarity) {
|
|
|
|
return it.cavallium.dbengine.rpc.current.data.IndicizerSimilarities.of(defaultSimilarity, fieldSimilarity);
|
2021-05-28 16:04:59 +02:00
|
|
|
}
|
|
|
|
}
|