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

SuggestResult Class

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

public final class SuggestResult

A result containing a document found by a suggestion query, plus associated metadata.

Constructor Summary

Constructor Description
SuggestResult(String text)

Constructor of SuggestResult.

Method Summary

Modifier and Type Method and Description
T getDocument(Class<T> modelClass)

Get the additionalProperties property: Unmatched properties from the message are deserialized this collection.

String getText()

Get the text property: The text of the suggestion result.

Methods inherited from java.lang.Object

Constructor Details

SuggestResult

public SuggestResult(String text)

Constructor of SuggestResult.

Parameters:

text - The text of the suggestion result.

Method Details

getDocument

public T getDocument(Class modelClass)

Get the additionalProperties property: Unmatched properties from the message are deserialized this collection.

Parameters:

modelClass - The model class converts to.

Returns:

the additionalProperties value.

getText

public String getText()

Get the text property: The text of the suggestion result.

Returns:

the text value.

Applies to