public final class ElisionFilter extends TokenFilter
TokenStream
. For example, "l'avion" (the plane) will be
tokenized as "avion" (plane).AttributeSource.AttributeFactory, AttributeSource.State
input
Constructor and Description |
---|
ElisionFilter(TokenStream input)
Deprecated.
use
ElisionFilter(Version, TokenStream) instead |
ElisionFilter(TokenStream input,
Set<?> articles)
Deprecated.
use
ElisionFilter(Version, TokenStream, Set) instead |
ElisionFilter(TokenStream input,
String[] articles)
Deprecated.
use
ElisionFilter(Version, TokenStream, Set) instead |
ElisionFilter(Version matchVersion,
TokenStream input)
Constructs an elision filter with standard stop words
|
ElisionFilter(Version matchVersion,
TokenStream input,
Set<?> articles)
Constructs an elision filter with a Set of stop words
|
Modifier and Type | Method and Description |
---|---|
boolean |
incrementToken()
Increments the
TokenStream with a CharTermAttribute without elisioned start |
void |
setArticles(Set<?> articles)
Deprecated.
use
setArticles(Version, Set) instead |
void |
setArticles(Version matchVersion,
Set<?> articles)
Deprecated.
use
ElisionFilter(Version, TokenStream, Set) instead |
close, end, reset
addAttribute, addAttributeImpl, captureState, clearAttributes, cloneAttributes, copyTo, equals, getAttribute, getAttributeClassesIterator, getAttributeFactory, getAttributeImplsIterator, hasAttribute, hasAttributes, hashCode, reflectAsString, reflectWith, restoreState, toString
public ElisionFilter(Version matchVersion, TokenStream input)
@Deprecated public ElisionFilter(TokenStream input)
ElisionFilter(Version, TokenStream)
instead@Deprecated public ElisionFilter(TokenStream input, Set<?> articles)
ElisionFilter(Version, TokenStream, Set)
insteadpublic ElisionFilter(Version matchVersion, TokenStream input, Set<?> articles)
matchVersion
- the lucene backwards compatibility versioninput
- the source TokenStream
articles
- a set of stopword articles@Deprecated public ElisionFilter(TokenStream input, String[] articles)
ElisionFilter(Version, TokenStream, Set)
instead@Deprecated public void setArticles(Version matchVersion, Set<?> articles)
ElisionFilter(Version, TokenStream, Set)
insteadmatchVersion
- the lucene backwards compatibility versionarticles
- a set of articles@Deprecated public void setArticles(Set<?> articles)
setArticles(Version, Set)
insteadarticles
- a set of articlespublic final boolean incrementToken() throws IOException
TokenStream
with a CharTermAttribute
without elisioned startincrementToken
in class TokenStream
IOException