SynonymFilterFactory instead. only for precise index backwards compatibility. this factory will be removed in Lucene 5.0@Deprecated
final class SlowSynonymFilter
extends org.apache.lucene.analysis.TokenFilter
The matched tokens from the input stream may be optionally passed through (includeOrig=true) or discarded. If the original tokens are included, the position increments may be modified to retain absolute positions after merging with the synonym tokenstream.
Generated synonyms will start at the same position as the first matched source token.
| Modifier and Type | Field and Description |
|---|---|
private java.util.LinkedList<org.apache.lucene.util.AttributeSource> |
buffer
Deprecated.
|
private boolean |
exhausted
Deprecated.
|
private SlowSynonymMap |
map
Deprecated.
|
private java.util.LinkedList<org.apache.lucene.util.AttributeSource> |
matched
Deprecated.
|
private java.util.Iterator<org.apache.lucene.util.AttributeSource> |
replacement
Deprecated.
|
| Constructor and Description |
|---|
SlowSynonymFilter(org.apache.lucene.analysis.TokenStream in,
SlowSynonymMap map)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
private void |
copy(org.apache.lucene.util.AttributeSource target,
org.apache.lucene.util.AttributeSource source)
Deprecated.
|
boolean |
incrementToken()
Deprecated.
|
private SlowSynonymMap |
match(SlowSynonymMap map)
Deprecated.
|
private org.apache.lucene.util.AttributeSource |
nextTok()
Deprecated.
|
private void |
pushTok(org.apache.lucene.util.AttributeSource t)
Deprecated.
|
void |
reset()
Deprecated.
|
addAttribute, addAttributeImpl, captureState, clearAttributes, cloneAttributes, copyTo, equals, getAttribute, getAttributeClassesIterator, getAttributeFactory, getAttributeImplsIterator, hasAttribute, hasAttributes, hashCode, reflectAsString, reflectWith, restoreState, toStringprivate final SlowSynonymMap map
private java.util.Iterator<org.apache.lucene.util.AttributeSource> replacement
private java.util.LinkedList<org.apache.lucene.util.AttributeSource> buffer
private java.util.LinkedList<org.apache.lucene.util.AttributeSource> matched
private boolean exhausted
public SlowSynonymFilter(org.apache.lucene.analysis.TokenStream in,
SlowSynonymMap map)
public boolean incrementToken()
throws java.io.IOException
incrementToken in class org.apache.lucene.analysis.TokenStreamjava.io.IOExceptionprivate org.apache.lucene.util.AttributeSource nextTok()
throws java.io.IOException
java.io.IOExceptionprivate void pushTok(org.apache.lucene.util.AttributeSource t)
private SlowSynonymMap match(SlowSynonymMap map) throws java.io.IOException
java.io.IOExceptionprivate void copy(org.apache.lucene.util.AttributeSource target,
org.apache.lucene.util.AttributeSource source)
public void reset()
throws java.io.IOException
reset in class org.apache.lucene.analysis.TokenFilterjava.io.IOException