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 |
|
Lexical |
getNormalizerName()
Get the normalizer property: The name of the normalizer to use to normalize the given text. |
| 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 |
setNormalizerName(LexicalNormalizerName normalizerName)
Set the normalizer property: The name of the normalizer to use to normalize the given text. |
|
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<CharFilterName> getCharFilters()
Get the charFilters property: An optional list of character filters to use when breaking the given text.
Returns:
getNormalizerName
public LexicalNormalizerName getNormalizerName()
Get the normalizer property: The name of the normalizer to use to normalize the given text.
Returns:
getText
public String getText()
Get the text property: The text to break into tokens.
Returns:
getTokenFilters
public List<TokenFilterName> getTokenFilters()
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:
setNormalizerName
public AnalyzeTextOptions setNormalizerName(LexicalNormalizerName normalizerName)
Set the normalizer property: The name of the normalizer to use to normalize 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: