public KuromojiIterationMarkCharFilterFactory(IndexSettings indexSettings, Environment env, String name, Settings settings) { super(indexSettings, name); normalizeKanji = settings.getAsBooleanLenientForPreEs6Indices(indexSettings.getIndexVersionCreated(), "normalize_kanji", JapaneseIterationMarkCharFilter.NORMALIZE_KANJI_DEFAULT, deprecationLogger); normalizeKana = settings.getAsBooleanLenientForPreEs6Indices(indexSettings.getIndexVersionCreated(), "normalize_kana", JapaneseIterationMarkCharFilter.NORMALIZE_KANA_DEFAULT, deprecationLogger); }
/** Creates a new JapaneseIterationMarkCharFilterFactory */ public JapaneseIterationMarkCharFilterFactory(Map<String,String> args) { super(args); normalizeKanji = getBoolean(args, NORMALIZE_KANJI_PARAM, JapaneseIterationMarkCharFilter.NORMALIZE_KANJI_DEFAULT); normalizeKana = getBoolean(args, NORMALIZE_KANA_PARAM, JapaneseIterationMarkCharFilter.NORMALIZE_KANA_DEFAULT); if (!args.isEmpty()) { throw new IllegalArgumentException("Unknown parameters: " + args); } }
@Override public Reader create(Reader reader) { return new JapaneseIterationMarkCharFilter(reader, normalizeKanji, normalizeKana); }
public KuromojiIterationMarkCharFilterFactory(final IndexSettings indexSettings, final Environment env, final String name, final Settings settings) { super(indexSettings, name); normalizeKanji = settings.getAsBoolean("normalize_kanji", JapaneseIterationMarkCharFilter.NORMALIZE_KANJI_DEFAULT); normalizeKana = settings.getAsBoolean("normalize_kana", JapaneseIterationMarkCharFilter.NORMALIZE_KANA_DEFAULT); }
@Override public Reader create(final Reader reader) { return new JapaneseIterationMarkCharFilter(reader, normalizeKanji, normalizeKana); }
@Override public CharFilter create(Reader input) { return new JapaneseIterationMarkCharFilter(input, normalizeKanji, normalizeKana); }
@Override public void init(Map<String, String> args) { super.init(args); normalizeKanji = getBoolean(NORMALIZE_KANJI_PARAM, JapaneseIterationMarkCharFilter.NORMALIZE_KANJI_DEFAULT); normalizeKana = getBoolean(NORMALIZE_KANA_PARAM, JapaneseIterationMarkCharFilter.NORMALIZE_KANA_DEFAULT); }