Interface LuceneAnalyzerTokenizerStep
-
public interface LuceneAnalyzerTokenizerStep
The step in an analyzer definition where the tokenizer can be set.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description LuceneAnalyzerOptionalComponentsStep
tokenizer(Class<? extends TokenizerFactory> factoryType)
Set the tokenizer to use.LuceneAnalyzerOptionalComponentsStep
tokenizer(String factoryName)
Set the tokenizer to use.
-
-
-
Method Detail
-
tokenizer
LuceneAnalyzerOptionalComponentsStep tokenizer(String factoryName)
Set the tokenizer to use.- Parameters:
factoryName
- The name of the factory that will create the tokenizer. The list of available names can be looked up withLuceneAnalysisConfigurationContext.availableTokenizers()
.- Returns:
- The next step.
-
tokenizer
LuceneAnalyzerOptionalComponentsStep tokenizer(Class<? extends TokenizerFactory> factoryType)
Set the tokenizer to use.- Parameters:
factoryType
- The type of the factory that will create the tokenizer.- Returns:
- The next step.
-
-