你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
QueryCaption Class
- java.
lang. Object - com.
azure. search. documents. models. QueryCaption
- com.
public final class QueryCaption
Configuration for how semantic search captions search results.
Constructor Summary
Constructor | Description |
---|---|
QueryCaption(QueryCaptionType captionType) |
Creates a new instance of QueryCaption. |
Method Summary
Modifier and Type | Method and Description |
---|---|
Query |
getCaptionType()
Gets the type of captions to generate. |
Boolean |
isHighlightEnabled()
Whether to highlight the captioned text in the result. |
Query |
setHighlightEnabled(Boolean highlightEnabled)
Sets whether to highlight the captioned text in the result. |
Methods inherited from java.lang.Object
Constructor Details
QueryCaption
public QueryCaption(QueryCaptionType captionType)
Creates a new instance of QueryCaption.
Parameters:
Method Details
getCaptionType
public QueryCaptionType getCaptionType()
Gets the type of captions to generate.
Returns:
isHighlightEnabled
public Boolean isHighlightEnabled()
Whether to highlight the captioned text in the result.
Returns:
setHighlightEnabled
public QueryCaption setHighlightEnabled(Boolean highlightEnabled)
Sets whether to highlight the captioned text in the result.
Parameters:
Returns: