Class SearchSuggester
java.lang.Object
com.azure.search.documents.indexes.models.SearchSuggester
Defines how the Suggest API should apply to a group of fields in the index.
-
Constructor Summary
ConstructorsConstructorDescriptionSearchSuggester
(String name, List<String> sourceFields) Creates an instance of SearchSuggester class. -
Method Summary
Modifier and TypeMethodDescriptiongetName()
Get the name property: The name of the suggester.Get the searchMode property: A value indicating the capabilities of the suggester.Get the sourceFields property: The list of field names to which the suggester applies.
-
Constructor Details
-
SearchSuggester
Creates an instance of SearchSuggester class.- Parameters:
name
- the name value to set.sourceFields
- the sourceFields value to set.
-
-
Method Details
-
getName
Get the name property: The name of the suggester.- Returns:
- the name value.
-
getSearchMode
Get the searchMode property: A value indicating the capabilities of the suggester.- Returns:
- the searchMode value.
-
getSourceFields
Get the sourceFields property: The list of field names to which the suggester applies. Each field must be searchable.- Returns:
- the sourceFields value.
-