public static class CustomAnalyzer.ConditionBuilder
extends java.lang.Object
ConditionalTokenFilter| Modifier and Type | Method and Description |
|---|---|
CustomAnalyzer.ConditionBuilder |
addTokenFilter(java.lang.Class<? extends TokenFilterFactory> factory,
java.util.Map<java.lang.String,java.lang.String> params)
Adds the given token filter.
|
CustomAnalyzer.ConditionBuilder |
addTokenFilter(java.lang.Class<? extends TokenFilterFactory> factory,
java.lang.String... params)
Adds the given token filter.
|
CustomAnalyzer.ConditionBuilder |
addTokenFilter(java.lang.String name,
java.util.Map<java.lang.String,java.lang.String> params)
Adds the given token filter.
|
CustomAnalyzer.ConditionBuilder |
addTokenFilter(java.lang.String name,
java.lang.String... params)
Adds the given token filter.
|
CustomAnalyzer.Builder |
endwhen()
Close the branch and return to the main analysis chain
|
public CustomAnalyzer.ConditionBuilder addTokenFilter(java.lang.String name, java.util.Map<java.lang.String,java.lang.String> params) throws java.io.IOException
name - is used to look up the factory with TokenFilterFactory.forName(String, Map).
The list of possible names can be looked up with TokenFilterFactory.availableTokenFilters().params - the map of parameters to be passed to factory. The map must be modifiable.java.io.IOExceptionpublic CustomAnalyzer.ConditionBuilder addTokenFilter(java.lang.String name, java.lang.String... params) throws java.io.IOException
name - is used to look up the factory with TokenFilterFactory.forName(String, Map).
The list of possible names can be looked up with TokenFilterFactory.availableTokenFilters().params - the map of parameters to be passed to factory. The map must be modifiable.java.io.IOExceptionpublic CustomAnalyzer.ConditionBuilder addTokenFilter(java.lang.Class<? extends TokenFilterFactory> factory, java.util.Map<java.lang.String,java.lang.String> params) throws java.io.IOException
factory - class that is used to create the token filter.params - the map of parameters to be passed to factory. The map must be modifiable.java.io.IOExceptionpublic CustomAnalyzer.ConditionBuilder addTokenFilter(java.lang.Class<? extends TokenFilterFactory> factory, java.lang.String... params) throws java.io.IOException
factory - class that is used to create the token filter.params - the map of parameters to be passed to factory. The map must be modifiable.java.io.IOExceptionpublic CustomAnalyzer.Builder endwhen() throws java.io.IOException
java.io.IOExceptionCopyright © 2000–2025 The Apache Software Foundation. All rights reserved.