Java 类org.apache.lucene.analysis.icu.ICUNormalizer2Filter 实例源码

项目:NYBC    文件:TestICUTokenizer.java   
@Override
protected TokenStreamComponents createComponents(String fieldName,
    Reader reader) {
  Tokenizer tokenizer = new ICUTokenizer(reader);
  TokenFilter filter = new ICUNormalizer2Filter(tokenizer);
  return new TokenStreamComponents(tokenizer, filter);
}
项目:Maskana-Gestor-de-Conocimiento    文件:TestICUTokenizer.java   
@Override
protected TokenStreamComponents createComponents(String fieldName,
    Reader reader) {
  Tokenizer tokenizer = new ICUTokenizer(reader);
  TokenFilter filter = new ICUNormalizer2Filter(tokenizer);
  return new TokenStreamComponents(tokenizer, filter);
}
项目:search    文件:TestICUTokenizer.java   
@Override
protected TokenStreamComponents createComponents(String fieldName, Reader reader) {
  Tokenizer tokenizer = new ICUTokenizer(newAttributeFactory(), reader, new DefaultICUTokenizerConfig(false));
  TokenFilter filter = new ICUNormalizer2Filter(tokenizer);
  return new TokenStreamComponents(tokenizer, filter);
}
项目:NYBC    文件:ICUNormalizer2FilterFactory.java   
@Override
public TokenStream create(TokenStream input) {
  return new ICUNormalizer2Filter(input, normalizer);
}