Java 类org.apache.lucene.analysis.ja.JapaneseKatakanaStemFilter 实例源码

项目:search    文件:JapaneseKatakanaStemFilterFactory.java   
/** Creates a new JapaneseKatakanaStemFilterFactory */
public JapaneseKatakanaStemFilterFactory(Map<String,String> args) {
  super(args);
  minimumLength = getInt(args, MINIMUM_LENGTH_PARAM, JapaneseKatakanaStemFilter.DEFAULT_MINIMUM_LENGTH);
  if (minimumLength < 2) {
    throw new IllegalArgumentException("Illegal " + MINIMUM_LENGTH_PARAM + " " + minimumLength + " (must be 2 or greater)");
  }
  if (!args.isEmpty()) {
    throw new IllegalArgumentException("Unknown parameters: " + args);
  }
}
项目:NYBC    文件:JapaneseKatakanaStemFilterFactory.java   
@Override
public void init(Map<String, String> args) {
  super.init(args);
  minimumLength = getInt(MINIMUM_LENGTH_PARAM, JapaneseKatakanaStemFilter.DEFAULT_MINIMUM_LENGTH);
  if (minimumLength < 2) {
    throw new IllegalArgumentException("Illegal " + MINIMUM_LENGTH_PARAM + " " + minimumLength + " (must be 2 or greater)");
  }
}
项目:read-open-source-code    文件:JapaneseKatakanaStemFilterFactory.java   
/** Creates a new JapaneseKatakanaStemFilterFactory */
public JapaneseKatakanaStemFilterFactory(Map<String,String> args) {
  super(args);
  minimumLength = getInt(args, MINIMUM_LENGTH_PARAM, JapaneseKatakanaStemFilter.DEFAULT_MINIMUM_LENGTH);
  if (minimumLength < 2) {
    throw new IllegalArgumentException("Illegal " + MINIMUM_LENGTH_PARAM + " " + minimumLength + " (must be 2 or greater)");
  }
  if (!args.isEmpty()) {
    throw new IllegalArgumentException("Unknown parameters: " + args);
  }
}
项目:read-open-source-code    文件:JapaneseKatakanaStemFilterFactory.java   
/** Creates a new JapaneseKatakanaStemFilterFactory */
public JapaneseKatakanaStemFilterFactory(Map<String,String> args) {
  super(args);
  minimumLength = getInt(args, MINIMUM_LENGTH_PARAM, JapaneseKatakanaStemFilter.DEFAULT_MINIMUM_LENGTH);
  if (minimumLength < 2) {
    throw new IllegalArgumentException("Illegal " + MINIMUM_LENGTH_PARAM + " " + minimumLength + " (must be 2 or greater)");
  }
  if (!args.isEmpty()) {
    throw new IllegalArgumentException("Unknown parameters: " + args);
  }
}
项目:Maskana-Gestor-de-Conocimiento    文件:JapaneseKatakanaStemFilterFactory.java   
/** Creates a new JapaneseKatakanaStemFilterFactory */
public JapaneseKatakanaStemFilterFactory(Map<String,String> args) {
  super(args);
  minimumLength = getInt(args, MINIMUM_LENGTH_PARAM, JapaneseKatakanaStemFilter.DEFAULT_MINIMUM_LENGTH);
  if (minimumLength < 2) {
    throw new IllegalArgumentException("Illegal " + MINIMUM_LENGTH_PARAM + " " + minimumLength + " (must be 2 or greater)");
  }
  if (!args.isEmpty()) {
    throw new IllegalArgumentException("Unknown parameters: " + args);
  }
}
项目:elasticsearch_my    文件:KuromojiKatakanaStemmerFactory.java   
public KuromojiKatakanaStemmerFactory(IndexSettings indexSettings, Environment environment, String name, Settings settings) {
    super(indexSettings, name, settings);
    minimumLength = settings.getAsInt("minimum_length", JapaneseKatakanaStemFilter.DEFAULT_MINIMUM_LENGTH);
}
项目:elasticsearch_my    文件:KuromojiKatakanaStemmerFactory.java   
@Override
public TokenStream create(TokenStream tokenStream) {
    return new JapaneseKatakanaStemFilter(tokenStream, minimumLength);
}
项目:elasticsearch-analysis-ja    文件:KuromojiKatakanaStemmerFactory.java   
public KuromojiKatakanaStemmerFactory(final IndexSettings indexSettings, final Environment environment, final String name, final Settings settings) {
    super(indexSettings, name, settings);
    minimumLength = settings.getAsInt("minimum_length", JapaneseKatakanaStemFilter.DEFAULT_MINIMUM_LENGTH);
}
项目:elasticsearch-analysis-ja    文件:KuromojiKatakanaStemmerFactory.java   
@Override
public TokenStream create(final TokenStream tokenStream) {
    return new JapaneseKatakanaStemFilter(tokenStream, minimumLength);
}
项目:elasticsearch-analysis-ja    文件:KuromojiKatakanaStemmerFactory.java   
public KuromojiKatakanaStemmerFactory(final IndexSettings indexSettings, final Environment environment, final String name, final Settings settings) {
    super(indexSettings, name, settings);
    minimumLength = settings.getAsInt("minimum_length", JapaneseKatakanaStemFilter.DEFAULT_MINIMUM_LENGTH);
}
项目:elasticsearch-analysis-ja    文件:KuromojiKatakanaStemmerFactory.java   
@Override
public TokenStream create(final TokenStream tokenStream) {
    return new JapaneseKatakanaStemFilter(tokenStream, minimumLength);
}
项目:search    文件:JapaneseKatakanaStemFilterFactory.java   
@Override
public TokenStream create(TokenStream input) {
  return new JapaneseKatakanaStemFilter(input, minimumLength);
}
项目:NYBC    文件:JapaneseKatakanaStemFilterFactory.java   
@Override
public TokenStream create(TokenStream input) {
  return new JapaneseKatakanaStemFilter(input, minimumLength);
}
项目:read-open-source-code    文件:JapaneseKatakanaStemFilterFactory.java   
@Override
public TokenStream create(TokenStream input) {
  return new JapaneseKatakanaStemFilter(input, minimumLength);
}
项目:read-open-source-code    文件:JapaneseKatakanaStemFilterFactory.java   
@Override
public TokenStream create(TokenStream input) {
  return new JapaneseKatakanaStemFilter(input, minimumLength);
}
项目:Maskana-Gestor-de-Conocimiento    文件:JapaneseKatakanaStemFilterFactory.java   
@Override
public TokenStream create(TokenStream input) {
  return new JapaneseKatakanaStemFilter(input, minimumLength);
}