SuggestResult Class
- java.
lang. Object - com.
azure. search. documents. models. SuggestResult
- com.
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 additional |
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
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
GitHub에서 Microsoft와 공동 작업
이 콘텐츠의 원본은 GitHub에서 찾을 수 있으며, 여기서 문제와 끌어오기 요청을 만들고 검토할 수도 있습니다. 자세한 내용은 참여자 가이드를 참조하세요.
Azure SDK for Java