Java Code Examples for org.apache.lucene.analysis.ar.ArabicAnalyzer#setVersion()
The following examples show how to use
org.apache.lucene.analysis.ar.ArabicAnalyzer#setVersion() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ArabicAnalyzerProvider.java From Elasticsearch with Apache License 2.0 | 5 votes |
@Inject public ArabicAnalyzerProvider(Index index, IndexSettingsService indexSettingsService, Environment env, @Assisted String name, @Assisted Settings settings) { super(index, indexSettingsService.getSettings(), name, settings); arabicAnalyzer = new ArabicAnalyzer(Analysis.parseStopWords(env, settings, ArabicAnalyzer.getDefaultStopSet()), Analysis.parseStemExclusion(settings, CharArraySet.EMPTY_SET)); arabicAnalyzer.setVersion(version); }
Example 2
Source File: ArabicAnalyzerProvider.java From crate with Apache License 2.0 | 5 votes |
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); }