QueryCaptionResult Class
- java.
lang. Object - com.
azure. search. documents. models. QueryCaptionResult
- com.
Implements
public final class QueryCaptionResult
implements JsonSerializable<QueryCaptionResult>
Captions are the most representative passages from the document relatively to the search query. They are often used as document summary. Captions are only returned for queries of type `semantic`.
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Query |
fromJson(JsonReader jsonReader)
Reads an instance of Query |
| Map<String,Object> |
getAdditionalProperties()
Get the additional |
| String |
getHighlights()
Get the highlights property: Same text passage as in the Text property with highlighted phrases most relevant to the query. |
| String |
getText()
Get the text property: A representative text passage extracted from the document most relevant to the search query. |
|
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from java.lang.Object
Method Details
fromJson
public static QueryCaptionResult fromJson(JsonReader jsonReader)
Reads an instance of QueryCaptionResult from the JsonReader.
Parameters:
Returns:
Throws:
getAdditionalProperties
public Map<String,Object> getAdditionalProperties()
Get the additionalProperties property: Captions are the most representative passages from the document relatively to the search query. They are often used as document summary. Captions are only returned for queries of type `semantic`.
Returns:
getHighlights
public String getHighlights()
Get the highlights property: Same text passage as in the Text property with highlighted phrases most relevant to the query.
Returns:
getText
public String getText()
Get the text property: A representative text passage extracted from the document most relevant to the search query.
Returns: