Interface LuceneAnalysisOptionalComponentsStep
- All Known Subinterfaces:
LuceneAnalysisComponentParametersStep
,LuceneAnalyzerOptionalComponentsStep
,LuceneNormalizerOptionalComponentsStep
public interface LuceneAnalysisOptionalComponentsStep
The step in an analyzer/normalizer definition
where optional components such as char filters or token filters can be added.
-
Method Summary
Modifier and TypeMethodDescriptioncharFilter
(Class<? extends CharFilterFactory> factoryType) Add a char filter that the analyzer will use.charFilter
(String factoryName) Add a char filter that the analyzer will use.tokenFilter
(Class<? extends TokenFilterFactory> factoryType) Add a token filter that the analyzer will use.tokenFilter
(String factoryName) Add a token filter that the analyzer will use.
-
Method Details
-
charFilter
Add a char filter that the analyzer will use.- Parameters:
factoryName
- The name of the factory that will create the char filter. The list of available names can be looked up withLuceneAnalysisConfigurationContext.availableCharFilters()
.- Returns:
- The next step.
-
charFilter
Add a char filter that the analyzer will use.- Parameters:
factoryType
- The type of the factory that will create the char filter.- Returns:
- The next step.
-
tokenFilter
Add a token filter that the analyzer will use.- Parameters:
factoryName
- The name of the factory that will create the token filter. The list of available names can be looked up withLuceneAnalysisConfigurationContext.availableTokenFilters()
.- Returns:
- The next step.
-
tokenFilter
Add a token filter that the analyzer will use.- Parameters:
factoryType
- The type of the factory that will create the token filter.- Returns:
- The next step.
-