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

项目:elasticsearch_my    文件:UniqueTokenFilterFactory.java   
@Override
public TokenStream create(TokenStream tokenStream) {
    return new UniqueTokenFilter(tokenStream, onlyOnSamePosition);
}
项目:Elasticsearch    文件:UniqueTokenFilterFactory.java   
@Override
public TokenStream create(TokenStream tokenStream) {
    return new UniqueTokenFilter(tokenStream, onlyOnSamePosition);
}
项目:elasticsearch-phone    文件:PhoneEmailAnalyzer.java   
@Override
protected TokenStreamComponents createComponents(String fieldName, Reader reader) {
    TermExtractorTokenizer tokenizer = new TermExtractorTokenizer(reader, new PhoneTermExtractor(), new EmailTermExtractor());
    return new TokenStreamComponents(tokenizer, new UniqueTokenFilter(tokenizer));
}
项目:elasticsearch-phone    文件:PhoneAnalyzer.java   
@Override
protected TokenStreamComponents createComponents(String field, Reader reader) {
    Tokenizer tokenizer = new TermExtractorTokenizer(reader, new PhoneTermExtractor());
    return new TokenStreamComponents(tokenizer, new UniqueTokenFilter(tokenizer));
}