Interface LuceneAnalysisOptionalComponentsStep
-
- All Known Subinterfaces:
LuceneAnalysisComponentParametersStep,LuceneAnalyzerOptionalComponentsStep,LuceneNormalizerOptionalComponentsStep
public interface LuceneAnalysisOptionalComponentsStepThe step in an analyzer/normalizer definition where optional components such as char filters or token filters can be added.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description LuceneAnalysisComponentParametersStepcharFilter(Class<? extends org.apache.lucene.analysis.util.CharFilterFactory> factoryType)Add a char filter that the analyzer will use.LuceneAnalysisComponentParametersStepcharFilter(String factoryName)Add a char filter that the analyzer will use.LuceneAnalysisComponentParametersSteptokenFilter(Class<? extends org.apache.lucene.analysis.util.TokenFilterFactory> factoryType)Add a token filter that the analyzer will use.LuceneAnalysisComponentParametersSteptokenFilter(String factoryName)Add a token filter that the analyzer will use.
-
-
-
Method Detail
-
charFilter
LuceneAnalysisComponentParametersStep charFilter(String factoryName)
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
LuceneAnalysisComponentParametersStep charFilter(Class<? extends org.apache.lucene.analysis.util.CharFilterFactory> factoryType)
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
LuceneAnalysisComponentParametersStep tokenFilter(String factoryName)
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
LuceneAnalysisComponentParametersStep tokenFilter(Class<? extends org.apache.lucene.analysis.util.TokenFilterFactory> factoryType)
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.
-
-