你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

AutocompleteResult Class

  • java.lang.Object
    • com.azure.search.documents.models.AutocompleteResult

Implements

public final class AutocompleteResult
implements JsonSerializable<AutocompleteResult>

The result of Autocomplete query.

Method Summary

Modifier and Type Method and Description
static AutocompleteResult fromJson(JsonReader jsonReader)

Reads an instance of AutocompleteResult from the JsonReader.

Double getCoverage()

Get the coverage property: A value indicating the percentage of the index that was considered by the autocomplete request, or null if minimumCoverage was not specified in the request.

List<AutocompleteItem> getResults()

Get the results property: The list of returned Autocompleted items.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Method Details

fromJson

public static AutocompleteResult fromJson(JsonReader jsonReader)

Reads an instance of AutocompleteResult from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of AutocompleteResult if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

getCoverage

public Double getCoverage()

Get the coverage property: A value indicating the percentage of the index that was considered by the autocomplete request, or null if minimumCoverage was not specified in the request.

Returns:

the coverage value.

getResults

public List<AutocompleteItem> getResults()

Get the results property: The list of returned Autocompleted items.

Returns:

the results value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to