|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.lucene.util.AttributeSource org.apache.lucene.analysis.TokenStream org.apache.lucene.analysis.TokenFilter org.apache.lucene.analysis.fr.ElisionFilter
public final class ElisionFilter
Removes elisions from a TokenStream
. For example, "l'avion" (the plane) will be
tokenized as "avion" (plane).
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.apache.lucene.util.AttributeSource |
---|
AttributeSource.AttributeFactory, AttributeSource.State |
Field Summary |
---|
Fields inherited from class org.apache.lucene.analysis.TokenFilter |
---|
input |
Constructor Summary | |
---|---|
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 |
Method Summary | |
---|---|
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 |
Methods inherited from class org.apache.lucene.analysis.TokenFilter |
---|
close, end, reset |
Methods inherited from class org.apache.lucene.util.AttributeSource |
---|
addAttribute, addAttributeImpl, captureState, clearAttributes, cloneAttributes, copyTo, equals, getAttribute, getAttributeClassesIterator, getAttributeFactory, getAttributeImplsIterator, hasAttribute, hasAttributes, hashCode, reflectAsString, reflectWith, restoreState, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
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)
instead
public 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
Method Detail |
---|
@Deprecated public void setArticles(Version matchVersion, Set<?> articles)
ElisionFilter(Version, TokenStream, Set)
instead
matchVersion
- the lucene backwards compatibility versionarticles
- a set of articles@Deprecated public void setArticles(Set<?> articles)
setArticles(Version, Set)
instead
articles
- a set of articlespublic final boolean incrementToken() throws IOException
TokenStream
with a CharTermAttribute
without elisioned start
incrementToken
in class TokenStream
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |