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 toAnalyzeTextOptions
which takes analyzerName.AnalyzeTextOptions
(String text, LexicalNormalizerName normalizerName) Constructor toAnalyzeTextOptions
which takes normalizerName.AnalyzeTextOptions
(String text, LexicalTokenizerName tokenizerName) Constructor toAnalyzeTextOptions
which 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.Get the normalizer name property: The name of the normalizer to use to normalize 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 toAnalyzeTextOptions
which takes analyzerName.- Parameters:
text
- The text break into tokens.analyzerName
- The name of the analyzer to use to break the given text.
-
AnalyzeTextOptions
Constructor toAnalyzeTextOptions
which takes tokenizerName.- Parameters:
text
- The text break into tokens.tokenizerName
- The name of the tokenizer to use to break the given text.
-
AnalyzeTextOptions
Constructor toAnalyzeTextOptions
which takes normalizerName.- Parameters:
text
- The text break into tokens.normalizerName
- The name of the normalizer 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.
-
getNormalizer
Get the normalizer name property: The name of the normalizer to use to normalize the given text.- Returns:
- the normalizer 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.
-