SearchSuggester Class
- java.
lang. Object - com.
azure. search. documents. indexes. models. SearchSuggester
- com.
Implements
public final class SearchSuggester
implements JsonSerializable<SearchSuggester>
Defines how the Suggest API should apply to a group of fields in the index.
Constructor Summary
Constructor | Description |
---|---|
SearchSuggester(String name, List<String> sourceFields) |
Creates an instance of Search |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Search |
fromJson(JsonReader jsonReader)
Reads an instance of Search |
String |
getName()
Get the name property: The name of the suggester. |
String |
getSearchMode()
Get the search |
List<String> |
getSourceFields()
Get the source |
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from java.lang.Object
Constructor Details
SearchSuggester
public SearchSuggester(String name, List
Creates an instance of SearchSuggester class.
Parameters:
Method Details
fromJson
public static SearchSuggester fromJson(JsonReader jsonReader)
Reads an instance of SearchSuggester from the JsonReader.
Parameters:
Returns:
Throws:
getName
public String getName()
Get the name property: The name of the suggester.
Returns:
getSearchMode
public String getSearchMode()
Get the searchMode property: A value indicating the capabilities of the suggester.
Returns:
getSourceFields
public List
Get the sourceFields property: The list of field names to which the suggester applies. Each field must be searchable.
Returns: