Example usage for org.apache.lucene.analysis.uk UkrainianMorfologikAnalyzer getDefaultStopSet

List of usage examples for org.apache.lucene.analysis.uk UkrainianMorfologikAnalyzer getDefaultStopSet

Introduction

In this page you can find the example usage for org.apache.lucene.analysis.uk UkrainianMorfologikAnalyzer getDefaultStopSet.

Prototype

public static CharArraySet getDefaultStopSet() 

Source Link

Document

Returns an unmodifiable instance of the default stop words set.

Usage

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

License:Apache License

public UkrainianAnalyzerProvider(IndexSettings indexSettings, Environment env, String name, Settings settings) {
    super(indexSettings, name, settings);
    analyzer = new UkrainianMorfologikAnalyzer(
            Analysis.parseStopWords(env, indexSettings.getIndexVersionCreated(), settings,
                    UkrainianMorfologikAnalyzer.getDefaultStopSet()),
            Analysis.parseStemExclusion(settings, CharArraySet.EMPTY_SET));
    analyzer.setVersion(version);/* w w w.  j  a v  a2s.  c o m*/
}