SnowballFilter
with
FrenchStemmer
instead, which has the
same functionality. This filter will be removed in Lucene 5.0@Deprecated public final class FrenchStemFilter extends org.apache.lucene.analysis.TokenFilter
TokenFilter
that stems french words.
The used stemmer can be changed at runtime after the
filter object is created (as long as it is a FrenchStemmer
).
To prevent terms from being stemmed use an instance of
KeywordMarkerFilter
or a custom TokenFilter
that sets
the KeywordAttribute
before this TokenStream
.
KeywordMarkerFilter
Constructor and Description |
---|
FrenchStemFilter(org.apache.lucene.analysis.TokenStream in)
Deprecated.
|
FrenchStemFilter(org.apache.lucene.analysis.TokenStream in,
Set<?> exclusiontable)
Deprecated.
use
KeywordAttribute with KeywordMarkerFilter instead. |
Modifier and Type | Method and Description |
---|---|
boolean |
incrementToken()
Deprecated.
|
void |
setExclusionTable(Map<?,?> exclusiontable)
Deprecated.
use
KeywordAttribute with KeywordMarkerFilter instead. |
void |
setStemmer(FrenchStemmer stemmer)
Deprecated.
Set a alternative/custom
FrenchStemmer for this filter. |
addAttribute, addAttributeImpl, captureState, clearAttributes, cloneAttributes, copyTo, equals, getAttribute, getAttributeClassesIterator, getAttributeFactory, getAttributeImplsIterator, hasAttribute, hasAttributes, hashCode, reflectAsString, reflectWith, restoreState, toString
public FrenchStemFilter(org.apache.lucene.analysis.TokenStream in)
@Deprecated public FrenchStemFilter(org.apache.lucene.analysis.TokenStream in, Set<?> exclusiontable)
KeywordAttribute
with KeywordMarkerFilter
instead.in
- the TokenStream
to filterexclusiontable
- a set of terms not to be stemmedpublic boolean incrementToken() throws IOException
incrementToken
in class org.apache.lucene.analysis.TokenStream
IOException
public void setStemmer(FrenchStemmer stemmer)
FrenchStemmer
for this filter.@Deprecated public void setExclusionTable(Map<?,?> exclusiontable)
KeywordAttribute
with KeywordMarkerFilter
instead.