Class SearchSuggester
Defines how the Suggest API should apply to a group of fields in the index.
Inheritance
System.Object
SearchSuggester
Namespace: System.Dynamic.ExpandoObject
Assembly: Azure.Search.Documents.dll
Syntax
public class SearchSuggester
Constructors
SearchSuggester(String, IEnumerable<String>)
Creates a new instance of the SearchSuggester class.
Declaration
public SearchSuggester (string name, System.Collections.Generic.IEnumerable<string> sourceFields);
Parameters
System.String
name
The name of the suggester. |
System.Collections.Generic.IEnumerable<System.String>
sourceFields
The list of field names to which the suggester applies. Each field must be searchable. |
Exceptions
System.ArgumentException
|
System.ArgumentNullException
|
SearchSuggester(String, String[])
Creates a new instance of the SearchSuggester class.
Declaration
public SearchSuggester (string name, params string[] sourceFields);
Parameters
System.String
name
The name of the suggester. |
System.String[]
sourceFields
The list of field names to which the suggester applies. Each field must be searchable. |
Exceptions
System.ArgumentException
|
System.ArgumentNullException
|
Properties
Name
The name of the suggester.
Declaration
public string Name { get; set; }
Property Value
System.String
|
SourceFields
The list of field names to which the suggester applies. Each field must be searchable.
Declaration
public System.Collections.Generic.IList<string> SourceFields { get; }
Property Value
System.Collections.Generic.IList<System.String>
|