|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.solr.analysis.BaseTokenFilterFactory
org.apache.solr.analysis.SnowballPorterFilterFactory
public class SnowballPorterFilterFactory
Factory for SnowballFilters, with configurable language
Browsing the code, SnowballFilter uses reflection to adapt to Lucene... don't use this if you are concerned about speed. Use EnglishPorterFilterFactory.
| Field Summary | |
|---|---|
protected Map<String,String> |
args
The init args |
protected org.apache.lucene.util.Version |
luceneMatchVersion
the luceneVersion arg |
static String |
PROTECTED_TOKENS
|
| Fields inherited from class org.apache.solr.analysis.BaseTokenFilterFactory |
|---|
log |
| Constructor Summary | |
|---|---|
SnowballPorterFilterFactory()
|
|
| Method Summary | |
|---|---|
protected void |
assureMatchVersion()
this method can be called in the #create method,
to inform user, that for this factory a luceneMatchVersion is required |
org.apache.solr.analysis.SnowballPorterFilter |
create(org.apache.lucene.analysis.TokenStream input)
Transform the specified input TokenStream |
Map<String,String> |
getArgs()
|
protected boolean |
getBoolean(String name,
boolean defaultVal)
|
protected boolean |
getBoolean(String name,
boolean defaultVal,
boolean useDefault)
|
protected int |
getInt(String name)
|
protected int |
getInt(String name,
int defaultVal)
|
protected int |
getInt(String name,
int defaultVal,
boolean useDefault)
|
protected org.apache.lucene.analysis.CharArraySet |
getWordSet(ResourceLoader loader,
String wordFiles,
boolean ignoreCase)
|
void |
inform(ResourceLoader loader)
|
void |
init(Map<String,String> args)
init will be called just once, immediately after creation. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.apache.solr.analysis.TokenFilterFactory |
|---|
getArgs |
| Field Detail |
|---|
public static final String PROTECTED_TOKENS
protected Map<String,String> args
protected org.apache.lucene.util.Version luceneMatchVersion
| Constructor Detail |
|---|
public SnowballPorterFilterFactory()
| Method Detail |
|---|
public void inform(ResourceLoader loader)
inform in interface ResourceLoaderAwarepublic void init(Map<String,String> args)
TokenFilterFactoryinit will be called just once, immediately after creation.
The args are user-level initialization parameters that may be specified when declaring the factory in the schema.xml
init in interface TokenFilterFactorypublic org.apache.solr.analysis.SnowballPorterFilter create(org.apache.lucene.analysis.TokenStream input)
TokenFilterFactory
create in interface TokenFilterFactorypublic Map<String,String> getArgs()
protected final void assureMatchVersion()
#create method,
to inform user, that for this factory a luceneMatchVersion is required
protected int getInt(String name)
protected int getInt(String name,
int defaultVal)
protected int getInt(String name,
int defaultVal,
boolean useDefault)
protected boolean getBoolean(String name,
boolean defaultVal)
protected boolean getBoolean(String name,
boolean defaultVal,
boolean useDefault)
protected org.apache.lucene.analysis.CharArraySet getWordSet(ResourceLoader loader,
String wordFiles,
boolean ignoreCase)
throws IOException
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||