org.elasticsearch.index.analysis
Class SnowballAnalyzerProvider
java.lang.Object
org.elasticsearch.index.AbstractIndexComponent
org.elasticsearch.index.analysis.AbstractIndexAnalyzerProvider<org.apache.lucene.analysis.snowball.SnowballAnalyzer>
org.elasticsearch.index.analysis.SnowballAnalyzerProvider
- All Implemented Interfaces:
- org.elasticsearch.common.inject.jex.Provider<org.apache.lucene.analysis.snowball.SnowballAnalyzer>, AnalyzerProvider<org.apache.lucene.analysis.snowball.SnowballAnalyzer>, IndexComponent
public class SnowballAnalyzerProvider
- extends AbstractIndexAnalyzerProvider<org.apache.lucene.analysis.snowball.SnowballAnalyzer>
Creates a SnowballAnalyzer initialized with stopwords and Snowball filter. Only
supports Dutch, English (default), French, German and German2 where stopwords
are readily available. For other languages available with the Lucene Snowball
Stemmer, use them directly with the SnowballFilter and a CustomAnalyzer.
Configuration of language is done with the "language" attribute or the analyzer.
Also supports additional stopwords via "stopwords" attribute
The SnowballAnalyzer comes with a StandardFilter, LowerCaseFilter, StopFilter
and the SnowballFilter.
Method Summary |
org.apache.lucene.analysis.snowball.SnowballAnalyzer |
get()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SnowballAnalyzerProvider
@Inject
public SnowballAnalyzerProvider(Index index,
@IndexSettings
Settings indexSettings,
java.lang.String name,
Settings settings)
get
public org.apache.lucene.analysis.snowball.SnowballAnalyzer get()