AnalyzeTextOptions Class
- java.
lang. Object - com.
azure. search. documents. indexes. models. AnalyzeTextOptions
- com.
Implements
public final class AnalyzeTextOptions
implements JsonSerializable<AnalyzeTextOptions>
Specifies some text and analysis components used to break that text into tokens.
Constructor Summary
| Constructor | Description |
|---|---|
| AnalyzeTextOptions(String text) |
Creates an instance of Analyze |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Analyze |
fromJson(JsonReader jsonReader)
Reads an instance of Analyze |
|
Lexical |
getAnalyzerName()
Get the analyzer |
|
List<Char |
getCharFilters()
Get the char |
|
Lexical |
getNormalizerName()
Get the normalizer |
| String |
getText()
Get the text property: The text to break into tokens. |
|
List<Token |
getTokenFilters()
Get the token |
|
Lexical |
getTokenizerName()
Get the tokenizer |
|
Analyze |
setAnalyzerName(LexicalAnalyzerName analyzerName)
Set the analyzer |
|
Analyze |
setCharFilters(CharFilterName[] charFilters)
Set the char |
|
Analyze |
setCharFilters(List<CharFilterName> charFilters)
Set the char |
|
Analyze |
setNormalizerName(LexicalNormalizerName normalizerName)
Set the normalizer |
|
Analyze |
setTokenFilters(List<TokenFilterName> tokenFilters)
Set the token |
|
Analyze |
setTokenFilters(TokenFilterName[] tokenFilters)
Set the token |
|
Analyze |
setTokenizerName(LexicalTokenizerName tokenizerName)
Set the tokenizer |
|
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from java.lang.Object
Constructor Details
AnalyzeTextOptions
public AnalyzeTextOptions(String text)
Creates an instance of AnalyzeTextOptions class.
Parameters:
Method Details
fromJson
public static AnalyzeTextOptions fromJson(JsonReader jsonReader)
Reads an instance of AnalyzeTextOptions from the JsonReader.
Parameters:
Returns:
Throws:
getAnalyzerName
public LexicalAnalyzerName getAnalyzerName()
Get the analyzerName property: The name of the analyzer to use to break the given text. If this parameter is not specified, you must specify a tokenizer instead. The tokenizer and analyzer parameters are mutually exclusive.
Returns:
getCharFilters
public List<CharFilterName> getCharFilters()
Get the charFilters property: An optional list of character filters to use when breaking the given text. This parameter can only be set when using the tokenizer parameter.
Returns:
getNormalizerName
public LexicalNormalizerName getNormalizerName()
Get the normalizerName 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. This parameter can only be set when using the tokenizer parameter.
Returns:
getTokenizerName
public LexicalTokenizerName getTokenizerName()
Get the tokenizerName property: The name of the tokenizer to use to break the given text. If this parameter is not specified, you must specify an analyzer instead. The tokenizer and analyzer parameters are mutually exclusive.
Returns:
setAnalyzerName
public AnalyzeTextOptions setAnalyzerName(LexicalAnalyzerName analyzerName)
Set the analyzerName property: The name of the analyzer to use to break the given text. If this parameter is not specified, you must specify a tokenizer instead. The tokenizer and analyzer parameters are mutually exclusive.
Parameters:
Returns:
setCharFilters
public AnalyzeTextOptions setCharFilters(CharFilterName[] charFilters)
Set the charFilters property: An optional list of character filters to use when breaking the given text. This parameter can only be set when using the tokenizer parameter.
Parameters:
Returns:
setCharFilters
public AnalyzeTextOptions setCharFilters(List<CharFilterName> charFilters)
Set the charFilters property: An optional list of character filters to use when breaking the given text. This parameter can only be set when using the tokenizer parameter.
Parameters:
Returns:
setNormalizerName
public AnalyzeTextOptions setNormalizerName(LexicalNormalizerName normalizerName)
Set the normalizerName property: The name of the normalizer to use to normalize the given text.
Parameters:
Returns:
setTokenFilters
public AnalyzeTextOptions setTokenFilters(List<TokenFilterName> tokenFilters)
Set the tokenFilters property: An optional list of token filters to use when breaking the given text. This parameter can only be set when using the tokenizer parameter.
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. This parameter can only be set when using the tokenizer parameter.
Parameters:
Returns:
setTokenizerName
public AnalyzeTextOptions setTokenizerName(LexicalTokenizerName tokenizerName)
Set the tokenizerName property: The name of the tokenizer to use to break the given text. If this parameter is not specified, you must specify an analyzer instead. The tokenizer and analyzer parameters are mutually exclusive.
Parameters:
Returns: