本文整理匯總了Java中org.xbib.elasticsearch.index.analysis.hyphen.HyphenTokenFilterFactory類的典型用法代碼示例。如果您正苦於以下問題:Java HyphenTokenFilterFactory類的具體用法?Java HyphenTokenFilterFactory怎麽用?Java HyphenTokenFilterFactory使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
HyphenTokenFilterFactory類屬於org.xbib.elasticsearch.index.analysis.hyphen包,在下文中一共展示了HyphenTokenFilterFactory類的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: getTokenFilters
import org.xbib.elasticsearch.index.analysis.hyphen.HyphenTokenFilterFactory; //導入依賴的package包/類
@Override
public Map<String, AnalysisModule.AnalysisProvider<TokenFilterFactory>> getTokenFilters() {
Map<String, AnalysisModule.AnalysisProvider<TokenFilterFactory>> extra = new LinkedHashMap<>();
if (settings.getAsBoolean("plugins.xbib.icu.enabled", true)) {
extra.put("icu_normalizer", IcuNormalizerTokenFilterFactory::new);
extra.put("icu_folding", IcuFoldingTokenFilterFactory::new);
extra.put("icu_transform", IcuTransformTokenFilterFactory::new);
extra.put("icu_numberformat", IcuNumberFormatTokenFilterFactory::new);
}
extra.put("auto_phrase", AutoPhrasingTokenFilterFactory::new);
extra.put("baseform", BaseformTokenFilterFactory::new);
extra.put("concat", ConcatTokenFilterFactory::new);
extra.put("pair", PairTokenFilterFactory::new);
extra.put("decompound", DecompoundTokenFilterFactory::new);
extra.put("german_normalize", GermanNormalizationFilterFactory::new);
extra.put("hyphen", HyphenTokenFilterFactory::new);
extra.put("sortform", SortformTokenFilterFactory::new);
extra.put("standardnumber", (indexSettings, environment, name, factorySettings) ->
new StandardnumberTokenFilterFactory(indexSettings, environment, name, factorySettings, standardNumberTypeParser));
extra.put("fst_decompound", FstDecompoundTokenFilterFactory::new);
extra.put("worddelimiter", WordDelimiterFilterFactory::new);
extra.put("worddelimiter2", WordDelimiterFilter2Factory::new);
extra.put("symbolname", SymbolnameTokenFilterFactory::new);
extra.put("year", GregorianYearTokenFilterFactory::new);
extra.put("lemmatize", LemmatizeTokenFilterFactory::new);
return extra;
}
示例2: processTokenFilters
import org.xbib.elasticsearch.index.analysis.hyphen.HyphenTokenFilterFactory; //導入依賴的package包/類
@Override
public void processTokenFilters(TokenFiltersBindings tokenFiltersBindings) {
tokenFiltersBindings.processTokenFilter("german_normalize", GermanNormalizationFilterFactory.class);
tokenFiltersBindings.processTokenFilter("decompound", DecompoundTokenFilterFactory.class);
tokenFiltersBindings.processTokenFilter("baseform", BaseformTokenFilterFactory.class);
tokenFiltersBindings.processTokenFilter("worddelimiter", WordDelimiterFilterFactory.class);
tokenFiltersBindings.processTokenFilter("worddelimiter2", WordDelimiterFilter2Factory.class);
tokenFiltersBindings.processTokenFilter("sortform", SortformTokenFilterFactory.class);
tokenFiltersBindings.processTokenFilter("concat", ConcatTokenFilterFactory.class);
tokenFiltersBindings.processTokenFilter("year", GregorianYearTokenFilterFactory.class);
tokenFiltersBindings.processTokenFilter("hyphen", HyphenTokenFilterFactory.class);
tokenFiltersBindings.processTokenFilter("standardnumber", StandardNumberTokenFilterFactory.class);
}
示例3: getTokenFilters
import org.xbib.elasticsearch.index.analysis.hyphen.HyphenTokenFilterFactory; //導入依賴的package包/類
@Override
public Map<String, AnalysisModule.AnalysisProvider<TokenFilterFactory>> getTokenFilters() {
Map<String, AnalysisModule.AnalysisProvider<TokenFilterFactory>> extra = new LinkedHashMap<>();
extra.put("hyphen", HyphenTokenFilterFactory::new);
return extra;
}