Example usage for org.apache.lucene.analysis.ko KoreanPartOfSpeechStopFilter DEFAULT_STOP_TAGS

List of usage examples for org.apache.lucene.analysis.ko KoreanPartOfSpeechStopFilter DEFAULT_STOP_TAGS

Introduction

In this page you can find the example usage for org.apache.lucene.analysis.ko KoreanPartOfSpeechStopFilter DEFAULT_STOP_TAGS.

Prototype

Set DEFAULT_STOP_TAGS

To view the source code for org.apache.lucene.analysis.ko KoreanPartOfSpeechStopFilter DEFAULT_STOP_TAGS.

Click Source Link

Document

Default list of tags to filter.

Usage

From source file:org.elasticsearch.index.analysis.NoriAnalyzerProvider.java

License:Apache License

public NoriAnalyzerProvider(IndexSettings indexSettings, Environment env, String name, Settings settings) {
    super(indexSettings, name, settings);
    final KoreanTokenizer.DecompoundMode mode = NoriTokenizerFactory.getMode(settings);
    final UserDictionary userDictionary = NoriTokenizerFactory.getUserDictionary(env, settings);
    final List<String> tagList = Analysis.getWordList(env, settings, "stoptags");
    final Set<POS.Tag> stopTags = tagList != null ? resolvePOSList(tagList)
            : KoreanPartOfSpeechStopFilter.DEFAULT_STOP_TAGS;
    analyzer = new KoreanAnalyzer(userDictionary, mode, stopTags, false);
}

From source file:org.elasticsearch.index.analysis.NoriPartOfSpeechStopFilterFactory.java

License:Apache License

public NoriPartOfSpeechStopFilterFactory(IndexSettings indexSettings, Environment env, String name,
        Settings settings) {//  w w w .  j a  v  a 2  s  .  c o  m
    super(indexSettings, name, settings);
    List<String> tagList = Analysis.getWordList(env, settings, "stoptags");
    this.stopTags = tagList != null ? resolvePOSList(tagList) : KoreanPartOfSpeechStopFilter.DEFAULT_STOP_TAGS;
}