| java.lang.Object org.apache.solr.analysis.SynonymMap
Method Summary | |
public void | add(List singleMatch, List replacement, boolean includeOrig, boolean mergeExisting) | public boolean | includeOrig() | public static List | makeTokens(List strings) | public static List | mergeTokens(List lst1, List lst2) Merge two lists of tokens, producing a single list with manipulated positionIncrements so that
the tokens end up at the same position. | public String | toString() |
INCLUDE_ORIG | final static int INCLUDE_ORIG(Code) | | |
synonyms | Token[] synonyms(Code) | | |
add | public void add(List singleMatch, List replacement, boolean includeOrig, boolean mergeExisting)(Code) | | Parameters: singleMatch - List, the sequence of strings to match Parameters: replacement - List the list of tokens to use on a match Parameters: includeOrig - sets a flag on this mapping signaling the generation of matched tokens in addition to the replacement tokens Parameters: mergeExisting - merge the replacement tokens with any other mappings that exist |
includeOrig | public boolean includeOrig()(Code) | | |
makeTokens | public static List makeTokens(List strings)(Code) | | Produces a List from a List
|
mergeTokens | public static List mergeTokens(List lst1, List lst2)(Code) | | Merge two lists of tokens, producing a single list with manipulated positionIncrements so that
the tokens end up at the same position.
Example: [a b] merged with [c d] produces [a/b c/d] ('/' denotes tokens in the same position)
Example: [a,5 b,2] merged with [c d,4 e,4] produces [c a,5/d b,2 e,2] (a,n means a has posInc=n)
|
|
|