AnalyzeTextOptions Class
- java.
lang. Object - com.
azure. search. documents. indexes. models. AnalyzeTextOptions
- com.
public final class AnalyzeTextOptions
Specifies some text and analysis components used to break that text into tokens.
Constructor Summary
Constructor | Description |
---|---|
AnalyzeTextOptions(String text, LexicalAnalyzerName analyzerName) |
Constructor to AnalyzeTextOptions which takes analyzer |
AnalyzeTextOptions(String text, LexicalTokenizerName tokenizerName) |
Constructor to AnalyzeTextOptions which takes tokenizer |
Method Summary
Modifier and Type | Method and Description |
---|---|
Lexical |
getAnalyzerName()
Get the analyzer name property: The name of the analyzer to use to break the given text. |
List<Char |
getCharFilters()
Get the char |
String |
getText()
Get the text property: The text to break into tokens. |
List<Token |
getTokenFilters()
Get the token |
Lexical |
getTokenizerName()
Get the tokenizer name property: The name of the tokenizer to use to break the given text. |
Analyze |
setCharFilters(CharFilterName[] charFilters)
Set the char |
Analyze |
setTokenFilters(TokenFilterName[] tokenFilters)
Set the token |
Methods inherited from java.lang.Object
Constructor Details
AnalyzeTextOptions
public AnalyzeTextOptions(String text, LexicalAnalyzerName analyzerName)
Constructor to AnalyzeTextOptions which takes analyzerName.
Parameters:
AnalyzeTextOptions
public AnalyzeTextOptions(String text, LexicalTokenizerName tokenizerName)
Constructor to AnalyzeTextOptions which takes tokenizerName.
Parameters:
Method Details
getAnalyzerName
public LexicalAnalyzerName getAnalyzerName()
Get the analyzer name property: The name of the analyzer to use to break the given text.
Returns:
getCharFilters
public List
Get the charFilters property: An optional list of character filters to use when breaking the given text.
Returns:
getText
public String getText()
Get the text property: The text to break into tokens.
Returns:
getTokenFilters
public List
Get the tokenFilters property: An optional list of token filters to use when breaking the given text.
Returns:
getTokenizerName
public LexicalTokenizerName getTokenizerName()
Get the tokenizer name property: The name of the tokenizer to use to break the given text.
Returns:
setCharFilters
public AnalyzeTextOptions setCharFilters(CharFilterName[] charFilters)
Set the charFilters property: An optional list of character filters to use when breaking the given text.
Parameters:
Returns:
setTokenFilters
public AnalyzeTextOptions setTokenFilters(TokenFilterName[] tokenFilters)
Set the tokenFilters property: An optional list of token filters to use when breaking the given text.
Parameters:
Returns:
Applies to
Azure SDK for Java
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for