public static class CustomAnalyzer.ConditionBuilder extends Object
ConditionalTokenFilter
Modifier and Type | Method and Description |
---|---|
CustomAnalyzer.ConditionBuilder |
addTokenFilter(Class<? extends TokenFilterFactory> factory,
Map<String,String> params)
Adds the given token filter.
|
CustomAnalyzer.ConditionBuilder |
addTokenFilter(Class<? extends TokenFilterFactory> factory,
String... params)
Adds the given token filter.
|
CustomAnalyzer.ConditionBuilder |
addTokenFilter(String name,
Map<String,String> params)
Adds the given token filter.
|
CustomAnalyzer.ConditionBuilder |
addTokenFilter(String name,
String... params)
Adds the given token filter.
|
CustomAnalyzer.Builder |
endwhen()
Close the branch and return to the main analysis chain
|
public CustomAnalyzer.ConditionBuilder addTokenFilter(String name, Map<String,String> params) throws 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.IOException
public CustomAnalyzer.ConditionBuilder addTokenFilter(String name, String... params) throws 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.IOException
public CustomAnalyzer.ConditionBuilder addTokenFilter(Class<? extends TokenFilterFactory> factory, Map<String,String> params) throws 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.IOException
public CustomAnalyzer.ConditionBuilder addTokenFilter(Class<? extends TokenFilterFactory> factory, String... params) throws 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.IOException
public CustomAnalyzer.Builder endwhen() throws IOException
IOException
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.