Class CaptionResult
java.lang.Object
com.azure.search.documents.models.CaptionResult
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'..
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the additionalProperties property: Captions are the most representative passages from the document relatively to the search query.Get the highlights property: Same text passage as in the Text property with highlighted phrases most relevant to the query.getText()
Get the text property: A representative text passage extracted from the document most relevant to the search query.setAdditionalProperties
(Map<String, Object> additionalProperties) Set the additionalProperties property: Captions are the most representative passages from the document relatively to the search query.
-
Constructor Details
-
CaptionResult
public CaptionResult()
-
-
Method Details
-
getText
Get the text property: A representative text passage extracted from the document most relevant to the search query.- Returns:
- the text value.
-
getHighlights
Get the highlights property: Same text passage as in the Text property with highlighted phrases most relevant to the query.- Returns:
- the highlights value.
-
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:
- the additionalProperties value.
-
setAdditionalProperties
Set 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'..- Parameters:
additionalProperties
- the additionalProperties value to set.- Returns:
- the CaptionResult object itself.
-