Note
Access to this page requires authorization. You can try signing in or .
Access to this page requires authorization. You can try .
SearchSuggester Class
- Package:
- com.azure.search.documents.indexes.models
- Maven Artifact:
- com.azure:azure-search-documents:12.0.0
- java.lang.Object
- com.azure.search.documents.indexes.models.SearchSuggester
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, String[] sourceFields) |
Creates an instance of SearchSuggester class. |
| SearchSuggester(String name, List<String> sourceFields) |
Creates an instance of SearchSuggester class. |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| static SearchSuggester |
fromJson(JsonReader jsonReader)
Reads an instance of SearchSuggester from the JsonReader. |
| String |
getName()
Get the name property: The name of the suggester. |
| String |
getSearchMode()
Get the searchMode property: A value indicating the capabilities of the suggester. |
| List<String> |
getSourceFields()
Get the sourceFields property: The list of field names to which the suggester applies. |
| JsonWriter | toJson(JsonWriter jsonWriter) |
Methods inherited from java.lang.Object
Constructor Details
SearchSuggester
public SearchSuggester(String name, String[] sourceFields)
Creates an instance of SearchSuggester class.
Parameters:
SearchSuggester
public SearchSuggester(String name, List<String> sourceFields)
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<String> getSourceFields()
Get the sourceFields property: The list of field names to which the suggester applies. Each field must be searchable.
Returns:
toJson
Applies to
Azure SDK for Java
Feedback
Was this page helpful?
