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,
java.util.Set<?> exclusiontable)
Deprecated.
use
KeywordAttribute with KeywordMarkerFilter instead. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
incrementToken()
Deprecated.
|
void |
setExclusionTable(java.util.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, toStringpublic FrenchStemFilter(org.apache.lucene.analysis.TokenStream in)
@Deprecated
public FrenchStemFilter(org.apache.lucene.analysis.TokenStream in,
java.util.Set<?> exclusiontable)
KeywordAttribute with KeywordMarkerFilter instead.in - the TokenStream to filterexclusiontable - a set of terms not to be stemmedpublic boolean incrementToken()
throws java.io.IOException
incrementToken in class org.apache.lucene.analysis.TokenStreamjava.io.IOExceptionpublic void setStemmer(FrenchStemmer stemmer)
FrenchStemmer for this filter.@Deprecated public void setExclusionTable(java.util.Map<?,?> exclusiontable)
KeywordAttribute with KeywordMarkerFilter instead.Copyright © 2000-2022 Apache Software Foundation. All Rights Reserved.