org.elasticsearch.index.analysis
Class SnowballAnalyzerProvider

java.lang.Object
  extended by org.elasticsearch.index.AbstractIndexComponent
      extended by org.elasticsearch.index.analysis.AbstractIndexAnalyzerProvider<org.apache.lucene.analysis.snowball.SnowballAnalyzer>
          extended by org.elasticsearch.index.analysis.SnowballAnalyzerProvider
All Implemented Interfaces:
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.


Field Summary
 
Fields inherited from class org.elasticsearch.index.analysis.AbstractIndexAnalyzerProvider
version
 
Fields inherited from class org.elasticsearch.index.AbstractIndexComponent
componentSettings, index, indexSettings, logger
 
Constructor Summary
SnowballAnalyzerProvider(Index index, Settings indexSettings, Environment env, String name, Settings settings)
           
 
Method Summary
 org.apache.lucene.analysis.snowball.SnowballAnalyzer get()
          Provides an instance of T.
 
Methods inherited from class org.elasticsearch.index.analysis.AbstractIndexAnalyzerProvider
name, scope
 
Methods inherited from class org.elasticsearch.index.AbstractIndexComponent
index, nodeName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SnowballAnalyzerProvider

@Inject
public SnowballAnalyzerProvider(Index index,
                                       @IndexSettings
                                       Settings indexSettings,
                                       Environment env,
                                       String name,
                                       Settings settings)
Method Detail

get

public org.apache.lucene.analysis.snowball.SnowballAnalyzer get()
Description copied from interface: Provider
Provides an instance of T. Must never return null.



Copyright © 2009-2012. All Rights Reserved.