本文整理匯總了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);
}