CavalliumDBEngine/src/main/java/it/cavallium/dbengine/client/IndicizerAnalyzers.java

21 lines
806 B
Java
Raw Normal View History

2021-05-28 16:04:59 +02:00
package it.cavallium.dbengine.client;
import it.cavallium.dbengine.lucene.analyzer.TextFieldsAnalyzer;
2022-03-05 15:46:40 +01:00
import it.cavallium.dbengine.rpc.current.serializers.IndicizerAnalyzersSerializer;
2021-05-28 16:04:59 +02:00
import java.util.Map;
2022-03-05 15:46:40 +01:00
public class IndicizerAnalyzers {
2021-05-28 16:04:59 +02:00
2022-03-05 15:46:40 +01:00
public static it.cavallium.dbengine.rpc.current.data.IndicizerAnalyzers of() {
2022-01-11 22:23:07 +01:00
return of(TextFieldsAnalyzer.ICUCollationKey);
2021-05-28 16:04:59 +02:00
}
2022-03-05 15:46:40 +01:00
public static it.cavallium.dbengine.rpc.current.data.IndicizerAnalyzers of(TextFieldsAnalyzer defaultAnalyzer) {
2021-05-28 16:04:59 +02:00
return of(defaultAnalyzer, Map.of());
}
2022-03-05 15:46:40 +01:00
public static it.cavallium.dbengine.rpc.current.data.IndicizerAnalyzers of(TextFieldsAnalyzer defaultAnalyzer, Map<String, TextFieldsAnalyzer> fieldAnalyzer) {
return new it.cavallium.dbengine.rpc.current.data.IndicizerAnalyzers(defaultAnalyzer, fieldAnalyzer);
2021-05-28 16:04:59 +02:00
}
}