AutocompleteItem Class
- java.
lang. Object - com.
azure. search. documents. models. AutocompleteItem
- com.
Implements
public final class AutocompleteItem
implements JsonSerializable<AutocompleteItem>
The result of Autocomplete requests.
Constructor Summary
Constructor | Description |
---|---|
AutocompleteItem(String text, String queryPlusText) |
Creates an instance of Autocomplete |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Autocomplete |
fromJson(JsonReader jsonReader)
Reads an instance of Autocomplete |
String |
getQueryPlusText()
Get the query |
String |
getText()
Get the text property: The completed term. |
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from java.lang.Object
Constructor Details
AutocompleteItem
public AutocompleteItem(String text, String queryPlusText)
Creates an instance of AutocompleteItem class.
Parameters:
Method Details
fromJson
public static AutocompleteItem fromJson(JsonReader jsonReader)
Reads an instance of AutocompleteItem from the JsonReader.
Parameters:
Returns:
Throws:
getQueryPlusText
public String getQueryPlusText()
Get the queryPlusText property: The query along with the completed term.
Returns:
getText
public String getText()
Get the text property: The completed term.
Returns: