Udostępnij za pośrednictwem


SearchSuggester Constructors

Definition

Overloads

SearchSuggester(String, IEnumerable<String>)

Creates a new instance of the SearchSuggester class.

SearchSuggester(String, String[])

Creates a new instance of the SearchSuggester class.

SearchSuggester(String, IEnumerable<String>)

Source:
SearchSuggester.cs
Source:
SearchSuggester.cs

Creates a new instance of the SearchSuggester class.

public SearchSuggester (string name, System.Collections.Generic.IEnumerable<string> sourceFields);
new Azure.Search.Documents.Indexes.Models.SearchSuggester : string * seq<string> -> Azure.Search.Documents.Indexes.Models.SearchSuggester
Public Sub New (name As String, sourceFields As IEnumerable(Of String))

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.

Exceptions

name is an empty string.

name or sourceFields is null.

Applies to

SearchSuggester(String, String[])

Source:
SearchSuggester.cs
Source:
SearchSuggester.cs

Creates a new instance of the SearchSuggester class.

public SearchSuggester (string name, params string[] sourceFields);
new Azure.Search.Documents.Indexes.Models.SearchSuggester : string * string[] -> Azure.Search.Documents.Indexes.Models.SearchSuggester
Public Sub New (name As String, ParamArray sourceFields As String())

Parameters

name
String

The name of the suggester.

sourceFields
String[]

The list of field names to which the suggester applies. Each field must be searchable.

Exceptions

name is an empty string.

name or sourceFields is null.

Applies to