Class AnalyzeTextOptions
java.lang.Object
com.azure.search.documents.indexes.models.AnalyzeTextOptions
Specifies some text and analysis components used to break that text into
tokens.
-
Constructor Summary
ConstructorsConstructorDescriptionAnalyzeTextOptions(String text, LexicalAnalyzerName analyzerName) Constructor toAnalyzeTextOptionswhich takes analyzerName.AnalyzeTextOptions(String text, LexicalTokenizerName tokenizerName) Constructor toAnalyzeTextOptionswhich takes tokenizerName. -
Method Summary
Modifier and TypeMethodDescriptionGet the analyzer name property: The name of the analyzer to use to break the given text.Get the charFilters property: An optional list of character filters to use when breaking the given text.getText()Get the text property: The text to break into tokens.Get the tokenFilters property: An optional list of token filters to use when breaking the given text.Get the tokenizer name property: The name of the tokenizer to use to break the given text.setCharFilters(CharFilterName... charFilters) Set the charFilters property: An optional list of character filters to use when breaking the given text.setTokenFilters(TokenFilterName... tokenFilters) Set the tokenFilters property: An optional list of token filters to use when breaking the given text.
-
Constructor Details
-
AnalyzeTextOptions
Constructor toAnalyzeTextOptionswhich takes analyzerName.- Parameters:
text- The text break into tokens.analyzerName- The name of the analyzer to use to break the given text.
-
AnalyzeTextOptions
Constructor toAnalyzeTextOptionswhich takes tokenizerName.- Parameters:
text- The text break into tokens.tokenizerName- The name of the tokenizer to use to break the given text.
-
-
Method Details
-
getText
Get the text property: The text to break into tokens.- Returns:
- the text value.
-
getAnalyzerName
Get the analyzer name property: The name of the analyzer to use to break the given text.- Returns:
- the analyzer value.
-
getTokenizerName
Get the tokenizer name property: The name of the tokenizer to use to break the given text.- Returns:
- the tokenizer value.
-
getTokenFilters
Get the tokenFilters property: An optional list of token filters to use when breaking the given text.- Returns:
- the tokenFilters value.
-
setTokenFilters
Set the tokenFilters property: An optional list of token filters to use when breaking the given text.- Parameters:
tokenFilters- the tokenFilters value to set.- Returns:
- the AnalyzeRequest object itself.
-
getCharFilters
Get the charFilters property: An optional list of character filters to use when breaking the given text.- Returns:
- the charFilters value.
-
setCharFilters
Set the charFilters property: An optional list of character filters to use when breaking the given text.- Parameters:
charFilters- the charFilters value to set.- Returns:
- the AnalyzeRequest object itself.
-