Class Analyzer
java.lang.Object
com.datastax.astra.client.core.lexical.Analyzer
Analyzer used for indexing and searching 'lexical' data.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Definition of filters and tokenizers -
Constructor Summary
ConstructorsConstructorDescriptionAnalyzer()
Default constructor.Analyzer
(AnalyzerTypes strAnalyzer) Constructor with analyzer type.Constructor with analyzer definition. -
Method Summary
Modifier and TypeMethodDescriptionaddChartFilter
(String name) Adds a char filter to the analyzer.addChartFilter
(String name, Map<String, String> args) Adds a char filter to the analyzer.Adds a filter to the analyzer.Adds a filter to the analyzer.Define a tokenizer by its name.Define a tokenizer by its name and arguments.
-
Constructor Details
-
Analyzer
public Analyzer()Default constructor. -
Analyzer
Constructor with analyzer definition.- Parameters:
strAnalyzer
- the analyzer definition
-
Analyzer
Constructor with analyzer type.- Parameters:
strAnalyzer
- the analyzer type
-
-
Method Details
-
tokenizer
Define a tokenizer by its name.- Parameters:
name
- the analyzer name- Returns:
- current reference
-
tokenizer
Define a tokenizer by its name and arguments.- Parameters:
name
- the analyzer nameargs
- the arguments for the analyzer- Returns:
- current reference
-
addFilter
Adds a filter to the analyzer.- Parameters:
name
- the name of the filter- Returns:
- current reference
-
addFilter
Adds a filter to the analyzer.- Parameters:
name
- the name of the filterargs
- the arguments for the filter- Returns:
- current reference
-
addChartFilter
Adds a char filter to the analyzer.- Parameters:
name
- the name of the filter- Returns:
- current reference
-
addChartFilter
Adds a char filter to the analyzer.- Parameters:
name
- the name of the filterargs
- the arguments for the filter- Returns:
- current reference
-