Class QueryCaption
java.lang.Object
com.azure.search.documents.models.QueryCaption
Configuration for how semantic search captions search results.
-
Constructor Summary
ConstructorsConstructorDescriptionQueryCaption(QueryCaptionType captionType) Creates a new instance ofQueryCaption. -
Method Summary
Modifier and TypeMethodDescriptionGets the type of captions to generate.Whether to highlight the captioned text in the result.setHighlightEnabled(Boolean highlightEnabled) Sets whether to highlight the captioned text in the result.
-
Constructor Details
-
QueryCaption
Creates a new instance ofQueryCaption.- Parameters:
captionType- The type of captions to generate.
-
-
Method Details
-
getCaptionType
Gets the type of captions to generate.- Returns:
- The type of captions to generate.
-
isHighlightEnabled
Whether to highlight the captioned text in the result.- Returns:
- Whether to highlight the captioned text in the result.
-
setHighlightEnabled
Sets whether to highlight the captioned text in the result.- Parameters:
highlightEnabled- Whether to highlight the captioned text in the result.- Returns:
- The QueryCaption object itself.
-