List of usage examples for org.apache.lucene.analysis.ja JapaneseKatakanaStemFilter DEFAULT_MINIMUM_LENGTH
int DEFAULT_MINIMUM_LENGTH
To view the source code for org.apache.lucene.analysis.ja JapaneseKatakanaStemFilter DEFAULT_MINIMUM_LENGTH.
Click Source Link
From source file:org.apache.solr.analysis.JapaneseKatakanaStemFilterFactory.java
License:Apache License
@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 InitializationException( "Illegal " + MINIMUM_LENGTH_PARAM + " " + minimumLength + " (must be 2 or greater)"); }/*w ww. j av a 2s . c o m*/ }
From source file:org.codelibs.elasticsearch.ja.analysis.KuromojiKatakanaStemmerFactory.java
License:Apache License
@Inject public KuromojiKatakanaStemmerFactory(Index index, IndexSettingsService indexSettingsService, @Assisted String name, @Assisted Settings settings) { super(index, indexSettingsService.getSettings(), name, settings); minimumLength = settings.getAsInt("minimum_length", JapaneseKatakanaStemFilter.DEFAULT_MINIMUM_LENGTH); }
From source file:org.elasticsearch.index.analysis.Kuromoji2KatakanaStemmerFactory.java
License:Apache License
public Kuromoji2KatakanaStemmerFactory(IndexSettings indexSettings, Environment environment, String name, Settings settings) {// w ww . j a v a 2 s . c o m super(indexSettings, name, settings); minimumLength = settings.getAsInt("minimum_length", JapaneseKatakanaStemFilter.DEFAULT_MINIMUM_LENGTH); }
From source file:org.elasticsearch.index.analysis.KuromojiKatakanaStemmerFactory.java
License:Apache License
@Inject public KuromojiKatakanaStemmerFactory(Index index, @IndexSettings Settings indexSettings, @Assisted String name, @Assisted Settings settings) {/* w w w . j a v a 2 s .c o m*/ super(index, indexSettings, name, settings); minimumLength = settings.getAsInt("minimum_length", JapaneseKatakanaStemFilter.DEFAULT_MINIMUM_LENGTH); }