Interface LuceneAnalyzerTokenizerStep
-
public interface LuceneAnalyzerTokenizerStepThe step in an analyzer definition where the tokenizer can be set.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description LuceneAnalyzerOptionalComponentsSteptokenizer(Class<? extends org.apache.lucene.analysis.util.TokenizerFactory> factoryType)Set the tokenizer to use.LuceneAnalyzerOptionalComponentsSteptokenizer(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 org.apache.lucene.analysis.util.TokenizerFactory> factoryType)
Set the tokenizer to use.- Parameters:
factoryType- The type of the factory that will create the tokenizer.- Returns:
- The next step.
-
-