Class SuggestResult
- java.lang.Object
-
- com.azure.search.documents.models.SuggestResult
-
public final class SuggestResult extends Object
A result containing a document found by a suggestion query, plus associated metadata.
-
-
Constructor Summary
Constructors Constructor Description SuggestResult(String text)
Constructor ofSuggestResult
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> 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.
-
-
-
Constructor Detail
-
SuggestResult
public SuggestResult(String text)
Constructor ofSuggestResult
.- Parameters:
text
- The text of the suggestion result.
-
-
Method Detail
-
getDocument
public <T> T getDocument(Class<T> modelClass)
Get the additionalProperties property: Unmatched properties from the message are deserialized this collection.- Type Parameters:
T
- Convert document to the generic type.- 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.
-
-