org.apache.lucene.analysis.de
public final class GermanStemFilter extends org.apache.lucene.analysis.TokenFilter
TokenFilter
that stems German words.
It supports a table of words that should
not be stemmed at all. The stemmer used can be changed at runtime after the
filter object is created (as long as it is a GermanStemmer
).
Constructor and Description |
---|
GermanStemFilter(org.apache.lucene.analysis.TokenStream in) |
GermanStemFilter(org.apache.lucene.analysis.TokenStream in,
java.util.Set exclusionSet)
Builds a GermanStemFilter that uses an exclusion table.
|
Modifier and Type | Method and Description |
---|---|
boolean |
incrementToken() |
void |
setExclusionSet(java.util.Set exclusionSet)
Set an alternative exclusion list for this filter.
|
void |
setStemmer(GermanStemmer stemmer)
Set a alternative/custom
GermanStemmer for this filter. |
getOnlyUseNewAPI, next, next, setOnlyUseNewAPI
addAttribute, addAttributeImpl, captureState, clearAttributes, cloneAttributes, equals, getAttribute, getAttributeClassesIterator, getAttributeFactory, getAttributeImplsIterator, hasAttribute, hasAttributes, hashCode, restoreState, toString
public GermanStemFilter(org.apache.lucene.analysis.TokenStream in)
public GermanStemFilter(org.apache.lucene.analysis.TokenStream in, java.util.Set exclusionSet)
public boolean incrementToken() throws java.io.IOException
incrementToken
in class org.apache.lucene.analysis.TokenStream
java.io.IOException
public void setStemmer(GermanStemmer stemmer)
GermanStemmer
for this filter.public void setExclusionSet(java.util.Set exclusionSet)
Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.