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

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

Introduction

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

Prototype

public UkrainianMorfologikAnalyzer(CharArraySet stopwords, CharArraySet stemExclusionSet) 

Source Link

Document

Builds an analyzer with the given stop words.

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  ww  .  j  a v a 2 s.  c  o  m
}