public class ConcatenateGraphFilterFactory extends TokenFilterFactory
ConcatenateGraphFilter.
Version.LUCENE_8_4_0
Whether ConcatenateGraphFilter.SEP_LABEL
should separate the input tokens in the concatenated token
ConcatenateGraphFilter.DEFAULT_TOKEN_SEPARATOR will be used.
If empty, tokens will be concatenated without any separators.
ConcatenateGraphFilter.SEP_LABEL.
When false, it's as if there were no missing positions
(we pretend the surrounding tokens were adjacent).
TooComplexToDeterminizeException to preserve the stability and memory of the
machine.
ConcatenateGraphFilter| Modifier and Type | Field and Description |
|---|---|
private int |
maxGraphExpansions |
static java.lang.String |
NAME
SPI name
|
private boolean |
preservePositionIncrements |
private java.lang.Character |
tokenSeparator |
LUCENE_MATCH_VERSION_PARAM, luceneMatchVersion| Constructor and Description |
|---|
ConcatenateGraphFilterFactory(java.util.Map<java.lang.String,java.lang.String> args) |
| Modifier and Type | Method and Description |
|---|---|
TokenStream |
create(TokenStream input)
Transform the specified input TokenStream
|
protected java.lang.Character |
getCharacter(java.util.Map<java.lang.String,java.lang.String> args,
java.lang.String name,
java.lang.Character defaultVal) |
availableTokenFilters, findSPIName, forName, lookupClass, normalize, reloadTokenFiltersget, get, get, get, get, getBoolean, getChar, getClassArg, getFloat, getInt, getLines, getLuceneMatchVersion, getOriginalArgs, getPattern, getSet, getSnowballWordSet, getWordSet, isExplicitLuceneMatchVersion, require, require, require, requireBoolean, requireChar, requireFloat, requireInt, setExplicitLuceneMatchVersion, splitAt, splitFileNamespublic static final java.lang.String NAME
private java.lang.Character tokenSeparator
private boolean preservePositionIncrements
private int maxGraphExpansions
public ConcatenateGraphFilterFactory(java.util.Map<java.lang.String,java.lang.String> args)
public TokenStream create(TokenStream input)
TokenFilterFactorycreate in class TokenFilterFactoryprotected java.lang.Character getCharacter(java.util.Map<java.lang.String,java.lang.String> args,
java.lang.String name,
java.lang.Character defaultVal)