Java 类org.apache.lucene.analysis.miscellaneous.WordDelimiterGraphFilter 实例源码

项目:elasticsearch_my    文件:WordDelimiterGraphTokenFilterFactory.java   
@Override
public TokenStream create(TokenStream tokenStream) {
    return new WordDelimiterGraphFilter(tokenStream, charTypeTable, flags, protoWords);
}
项目:hmftools    文件:TreatmentCurator.java   
@NotNull
private static TokenFilter defaultTokenFilter(@NotNull final Tokenizer source) {
    final TokenFilter filteredSource = new LowerCaseFilter(source);
    return new WordDelimiterGraphFilter(filteredSource, SPLIT_ON_NUMERICS | GENERATE_WORD_PARTS | GENERATE_NUMBER_PARTS, null);
}