Java 类org.apache.lucene.analysis.el.GreekLowerCaseFilter 实例源码

项目:elasticsearch_my    文件:LowerCaseTokenFilterFactory.java   
@Override
public TokenStream create(TokenStream tokenStream) {
    if (lang == null) {
        return new LowerCaseFilter(tokenStream);
    } else if (lang.equalsIgnoreCase("greek")) {
        return new GreekLowerCaseFilter(tokenStream);
    } else if (lang.equalsIgnoreCase("irish")) {
        return new IrishLowerCaseFilter(tokenStream);
    } else if (lang.equalsIgnoreCase("turkish")) {
        return new TurkishLowerCaseFilter(tokenStream);
    } else {
        throw new IllegalArgumentException("language [" + lang + "] not support for lower case");
    }
}
项目:Elasticsearch    文件:LowerCaseTokenFilterFactory.java   
@Override
public TokenStream create(TokenStream tokenStream) {
    if (lang == null) {
        return new LowerCaseFilter(tokenStream);
    } else if (lang.equalsIgnoreCase("greek")) {
        return new GreekLowerCaseFilter(tokenStream);
    } else if (lang.equalsIgnoreCase("irish")) {
        return new IrishLowerCaseFilter(tokenStream);
    } else if (lang.equalsIgnoreCase("turkish")) {
        return new TurkishLowerCaseFilter(tokenStream);
    } else {
        throw new IllegalArgumentException("language [" + lang + "] not support for lower case");
    }
}
项目:NYBC    文件:TestGreekStemFilterFactory.java   
public void testStemming() throws Exception {
  Reader reader = new StringReader("άνθρωπος");
  Tokenizer tokenizer = new MockTokenizer(reader, MockTokenizer.WHITESPACE, false);
  TokenStream normalized = new GreekLowerCaseFilter(TEST_VERSION_CURRENT, tokenizer);
  GreekStemFilterFactory factory = new GreekStemFilterFactory();
  TokenStream stream = factory.create(normalized);
  assertTokenStreamContents(stream, new String[] { "ανθρωπ" });
}
项目:lams    文件:GreekLowerCaseFilterFactory.java   
@Override
public GreekLowerCaseFilter create(TokenStream in) {
  return new GreekLowerCaseFilter(in);
}
项目:search    文件:GreekLowerCaseFilterFactory.java   
@Override
public GreekLowerCaseFilter create(TokenStream in) {
  return new GreekLowerCaseFilter(in);
}
项目:NYBC    文件:GreekLowerCaseFilterFactory.java   
@Override
public GreekLowerCaseFilter create(TokenStream in) {
  return new GreekLowerCaseFilter(luceneMatchVersion, in);
}
项目:read-open-source-code    文件:GreekLowerCaseFilterFactory.java   
@Override
public GreekLowerCaseFilter create(TokenStream in) {
  return new GreekLowerCaseFilter(luceneMatchVersion, in);
}
项目:read-open-source-code    文件:GreekLowerCaseFilterFactory.java   
@Override
public GreekLowerCaseFilter create(TokenStream in) {
  return new GreekLowerCaseFilter(luceneMatchVersion, in);
}
项目:read-open-source-code    文件:GreekLowerCaseFilterFactory.java   
@Override
public GreekLowerCaseFilter create(TokenStream in) {
  return new GreekLowerCaseFilter(in);
}
项目:Maskana-Gestor-de-Conocimiento    文件:GreekLowerCaseFilterFactory.java   
@Override
public GreekLowerCaseFilter create(TokenStream in) {
  return new GreekLowerCaseFilter(luceneMatchVersion, in);
}