SearchModelFactory.AnalyzeTextOptions Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of AnalyzeTextOptions.
public static Azure.Search.Documents.Indexes.Models.AnalyzeTextOptions AnalyzeTextOptions(string text = default, Azure.Search.Documents.Indexes.Models.LexicalAnalyzerName? analyzerName = default, Azure.Search.Documents.Indexes.Models.LexicalTokenizerName? tokenizerName = default, Azure.Search.Documents.Indexes.Models.LexicalNormalizerName? normalizerName = default, System.Collections.Generic.IEnumerable<Azure.Search.Documents.Indexes.Models.TokenFilterName> tokenFilters = default, System.Collections.Generic.IEnumerable<string> charFilters = default);
static member AnalyzeTextOptions : string * Nullable<Azure.Search.Documents.Indexes.Models.LexicalAnalyzerName> * Nullable<Azure.Search.Documents.Indexes.Models.LexicalTokenizerName> * Nullable<Azure.Search.Documents.Indexes.Models.LexicalNormalizerName> * seq<Azure.Search.Documents.Indexes.Models.TokenFilterName> * seq<string> -> Azure.Search.Documents.Indexes.Models.AnalyzeTextOptions
Public Shared Function AnalyzeTextOptions (Optional text As String = Nothing, Optional analyzerName As Nullable(Of LexicalAnalyzerName) = Nothing, Optional tokenizerName As Nullable(Of LexicalTokenizerName) = Nothing, Optional normalizerName As Nullable(Of LexicalNormalizerName) = Nothing, Optional tokenFilters As IEnumerable(Of TokenFilterName) = Nothing, Optional charFilters As IEnumerable(Of String) = Nothing) As AnalyzeTextOptions
Parameters
- text
- String
The text to break into tokens.
- analyzerName
- Nullable<LexicalAnalyzerName>
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.
- tokenizerName
- Nullable<LexicalTokenizerName>
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.
- normalizerName
- Nullable<LexicalNormalizerName>
The name of the normalizer to use to normalize the given text.
- tokenFilters
- IEnumerable<TokenFilterName>
An optional list of token filters to use when breaking the given text. This parameter can only be set when using the tokenizer parameter.
- charFilters
- IEnumerable<String>
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
A new AnalyzeTextOptions instance for mocking.