Java 类org.apache.lucene.analysis.compound.DictionaryCompoundWordTokenFilter 实例源码

项目:Elasticsearch    文件:DictionaryCompoundWordTokenFilterFactory.java   
@Override
public TokenStream create(TokenStream tokenStream) {
    if (version.onOrAfter(Version.LUCENE_4_4_0)) {
        return new DictionaryCompoundWordTokenFilter(tokenStream, wordList, minWordSize, 
                                                     minSubwordSize, maxSubwordSize, onlyLongestMatch);
    } else {
        return new Lucene43DictionaryCompoundWordTokenFilter(tokenStream, wordList, minWordSize,
                                                             minSubwordSize, maxSubwordSize, onlyLongestMatch);
    }
}
项目:elasticsearch_my    文件:DictionaryCompoundWordTokenFilterFactory.java   
@Override
public TokenStream create(TokenStream tokenStream) {
    return new DictionaryCompoundWordTokenFilter(tokenStream, wordList, minWordSize,
                                                 minSubwordSize, maxSubwordSize, onlyLongestMatch);
}