SearchModelFactory.SearchSuggester(String, IEnumerable<String>) 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.
Defines how the Suggest API should apply to a group of fields in the index.
public static Azure.Search.Documents.Indexes.Models.SearchSuggester SearchSuggester(string name = default, System.Collections.Generic.IEnumerable<string> sourceFields = default);
static member SearchSuggester : string * seq<string> -> Azure.Search.Documents.Indexes.Models.SearchSuggester
Public Shared Function SearchSuggester (Optional name As String = Nothing, Optional sourceFields As IEnumerable(Of String) = Nothing) As SearchSuggester
Parameters
- name
- String
The name of the suggester.
- sourceFields
- IEnumerable<String>
The list of field names to which the suggester applies. Each field must be searchable.
Returns
A new SearchSuggester instance for mocking.