public interface Analysis
| Modifier and Type | Interface and Description |
|---|---|
static class |
Analysis.CharfilteredText
Holder for a charfilter name and text that output by the charfilter
|
static class |
Analysis.NamedObject
Base class for named object
|
static class |
Analysis.NamedTokens
Holder for a pair tokenizer/filter and token list
|
static class |
Analysis.StepByStepResult
Step-by-step analysis result holder.
|
static class |
Analysis.Token
Holder for a token.
|
static class |
Analysis.TokenAttribute
Holder for a token attribute.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addExternalJars(List<String> jarFiles)
Adds external jar files to classpath and loads custom
CharFilterFactorys, TokenizerFactorys, or TokenFilterFactorys. |
List<Analysis.Token> |
analyze(String text)
Analyzes given text with the current Analyzer.
|
Analysis.StepByStepResult |
analyzeStepByStep(String text)
Analyzes given text with the current Analyzer.
|
Analyzer |
buildCustomAnalyzer(CustomAnalyzerConfig config)
Creates new custom Analyzer instance with the given configurations.
|
Analyzer |
createAnalyzerFromClassName(String analyzerType)
Creates new Analyzer instance for the specified class name.
|
Analyzer |
currentAnalyzer()
Returns current analyzer.
|
Collection<String> |
getAvailableCharFilters()
Returns available char filter names.
|
Collection<String> |
getAvailableTokenFilters()
Returns available token filter names.
|
Collection<String> |
getAvailableTokenizers()
Returns available tokenizer names.
|
Collection<Class<? extends Analyzer>> |
getPresetAnalyzerTypes()
Returns built-in
Analyzers. |
Collection<Class<? extends Analyzer>> getPresetAnalyzerTypes()
Analyzers.Collection<String> getAvailableCharFilters()
Collection<String> getAvailableTokenizers()
Collection<String> getAvailableTokenFilters()
Analyzer createAnalyzerFromClassName(String analyzerType)
analyzerType - - instantiable class name of an AnalyzerLukeException - - if failed to create new Analyzer instanceAnalyzer buildCustomAnalyzer(CustomAnalyzerConfig config)
config - - custom analyzer configurationsLukeException - - if failed to create new Analyzer instanceList<Analysis.Token> analyze(String text)
text - - text string to analyzeLukeException - - if an internal error occurs when analyzing textAnalyzer currentAnalyzer()
LukeException - - if current analyzer not setvoid addExternalJars(List<String> jarFiles)
CharFilterFactorys, TokenizerFactorys, or TokenFilterFactorys.jarFiles - - list of paths to jar fileLukeException - - if an internal error occurs when loading jarsAnalysis.StepByStepResult analyzeStepByStep(String text)
text - - text string to analyzeCopyright © 2000-2024 Apache Software Foundation. All Rights Reserved.