SynonymFilterFactory
instead. only for precise index backwards compatibility. this factory will be removed in Lucene 5.0@Deprecated
class SlowSynonymMap
extends java.lang.Object
SlowSynonymFilter
Modifier and Type | Field and Description |
---|---|
(package private) int |
flags
Deprecated.
|
(package private) static int |
IGNORE_CASE
Deprecated.
|
(package private) static int |
INCLUDE_ORIG
Deprecated.
|
org.apache.lucene.analysis.CharArrayMap<SlowSynonymMap> |
submap
Deprecated.
|
org.apache.lucene.analysis.Token[] |
synonyms
Deprecated.
|
Constructor and Description |
---|
SlowSynonymMap()
Deprecated.
|
SlowSynonymMap(boolean ignoreCase)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
add(java.util.List<java.lang.String> singleMatch,
java.util.List<org.apache.lucene.analysis.Token> replacement,
boolean includeOrig,
boolean mergeExisting)
Deprecated.
|
boolean |
ignoreCase()
Deprecated.
|
boolean |
includeOrig()
Deprecated.
|
static java.util.List<org.apache.lucene.analysis.Token> |
makeTokens(java.util.List<java.lang.String> strings)
Deprecated.
Produces a List
|
static java.util.List<org.apache.lucene.analysis.Token> |
mergeTokens(java.util.List<org.apache.lucene.analysis.Token> lst1,
java.util.List<org.apache.lucene.analysis.Token> lst2)
Deprecated.
Merge two lists of tokens, producing a single list with manipulated positionIncrements so that
the tokens end up at the same position.
|
java.lang.String |
toString()
Deprecated.
|
public org.apache.lucene.analysis.CharArrayMap<SlowSynonymMap> submap
public org.apache.lucene.analysis.Token[] synonyms
int flags
static final int INCLUDE_ORIG
static final int IGNORE_CASE
public SlowSynonymMap()
public SlowSynonymMap(boolean ignoreCase)
public boolean includeOrig()
public boolean ignoreCase()
public void add(java.util.List<java.lang.String> singleMatch, java.util.List<org.apache.lucene.analysis.Token> replacement, boolean includeOrig, boolean mergeExisting)
singleMatch
- Listreplacement
- ListincludeOrig
- sets a flag on this mapping signaling the generation of matched tokens in addition to the replacement tokensmergeExisting
- merge the replacement tokens with any other mappings that existpublic java.lang.String toString()
toString
in class java.lang.Object
public static java.util.List<org.apache.lucene.analysis.Token> makeTokens(java.util.List<java.lang.String> strings)
public static java.util.List<org.apache.lucene.analysis.Token> mergeTokens(java.util.List<org.apache.lucene.analysis.Token> lst1, java.util.List<org.apache.lucene.analysis.Token> lst2)