Example usage for org.apache.lucene.analysis.ar ArabicAnalyzer ArabicAnalyzer

List of usage examples for org.apache.lucene.analysis.ar ArabicAnalyzer ArabicAnalyzer

Introduction

In this page you can find the example usage for org.apache.lucene.analysis.ar ArabicAnalyzer ArabicAnalyzer.

Prototype

public ArabicAnalyzer(CharArraySet stopwords, CharArraySet stemExclusionSet) 

Source Link

Document

Builds an analyzer with the given stop word.

Usage

From source file:org.elasticsearch.analysis.common.ArabicAnalyzerProvider.java

License:Apache License

ArabicAnalyzerProvider(IndexSettings indexSettings, Environment env, String name, Settings settings) {
    super(indexSettings, name, settings);
    arabicAnalyzer = new ArabicAnalyzer(
            Analysis.parseStopWords(env, settings, ArabicAnalyzer.getDefaultStopSet()),
            Analysis.parseStemExclusion(settings, CharArraySet.EMPTY_SET));
    arabicAnalyzer.setVersion(version);//from  ww  w.  jav  a  2  s  .c o m
}