本文整理汇总了Java中org.xbib.elasticsearch.index.analysis.hyphen.HyphenAnalyzerProvider类的典型用法代码示例。如果您正苦于以下问题:Java HyphenAnalyzerProvider类的具体用法?Java HyphenAnalyzerProvider怎么用?Java HyphenAnalyzerProvider使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
HyphenAnalyzerProvider类属于org.xbib.elasticsearch.index.analysis.hyphen包,在下文中一共展示了HyphenAnalyzerProvider类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getAnalyzers
import org.xbib.elasticsearch.index.analysis.hyphen.HyphenAnalyzerProvider; //导入依赖的package包/类
@Override
public Map<String, AnalysisModule.AnalysisProvider<AnalyzerProvider<? extends Analyzer>>> getAnalyzers() {
Map<String, AnalysisModule.AnalysisProvider<AnalyzerProvider<? extends Analyzer>>> extra = new LinkedHashMap<>();
if (settings.getAsBoolean("plugins.xbib.icu.enabled", true)) {
extra.put("icu_collation", IcuCollationKeyAnalyzerProvider::new);
}
extra.put("hyphen", HyphenAnalyzerProvider::new);
extra.put("naturalsort", NaturalSortKeyAnalyzerProvider::new);
extra.put("sortform", SortformAnalyzerProvider::new);
extra.put("standardnumber", (indexSettings, environment, name, factorySettings) ->
new StandardnumberAnalyzerProvider(indexSettings, environment, name, factorySettings, standardNumberTypeParser));
return extra;
}
示例2: getAnalyzers
import org.xbib.elasticsearch.index.analysis.hyphen.HyphenAnalyzerProvider; //导入依赖的package包/类
@Override
public Map<String, AnalysisModule.AnalysisProvider<AnalyzerProvider<? extends Analyzer>>> getAnalyzers() {
Map<String, AnalysisModule.AnalysisProvider<AnalyzerProvider<? extends Analyzer>>> extra = new LinkedHashMap<>();
extra.put("hyphen", HyphenAnalyzerProvider::new);
return extra;
}
示例3: processAnalyzers
import org.xbib.elasticsearch.index.analysis.hyphen.HyphenAnalyzerProvider; //导入依赖的package包/类
@Override
public void processAnalyzers(AnalyzersBindings analyzersBindings) {
analyzersBindings.processAnalyzer("standardnumber", StandardNumberAnalyzerProvider.class);
analyzersBindings.processAnalyzer("sortform", SortformAnalyzerProvider.class);
analyzersBindings.processAnalyzer("hyphen", HyphenAnalyzerProvider.class);
}