當前位置: 首頁>>代碼示例>>Java>>正文


Java HyphenTokenFilterFactory類代碼示例

本文整理匯總了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;
}
 
開發者ID:jprante,項目名稱:elasticsearch-plugin-bundle,代碼行數:28,代碼來源:BundlePlugin.java

示例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);
}
 
開發者ID:jprante,項目名稱:elasticsearch-analysis-german,代碼行數:14,代碼來源:GermanAnalysisBinderProcessor.java

示例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;
}
 
開發者ID:jprante,項目名稱:elasticsearch-analysis-hyphen,代碼行數:7,代碼來源:HyphenPlugin.java


注:本文中的org.xbib.elasticsearch.index.analysis.hyphen.HyphenTokenFilterFactory類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。