Class QueryCaptionType
java.lang.Object
com.azure.core.util.ExpandableStringEnum<QueryCaptionType>
com.azure.search.documents.models.QueryCaptionType
- All Implemented Interfaces:
com.azure.core.util.ExpandableEnum<String>
public final class QueryCaptionType
extends com.azure.core.util.ExpandableStringEnum<QueryCaptionType>
This parameter is only valid if the query type is `semantic`. If set, the query returns captions extracted from key
passages in the highest ranked documents. When Captions is set to `extractive`, highlighting is enabled by default,
and can be configured by appending the pipe character `|` followed by the `highlight-<true/false>` option, such
as `extractive|highlight-true`. Defaults to `None`. The maximum character length of captions can be configured by
appending the pipe character '|' followed by the 'count-<number of maximum character length>', such as
'extractive|maxcharlength-600'.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final QueryCaptionTypeExtracts captions from the matching documents that contain passages relevant to the search query.static final QueryCaptionTypeDo not return captions for the query. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic QueryCaptionTypefromString(String name) Creates or finds a QueryCaptionType from its string representation.static Collection<QueryCaptionType> values()Gets known QueryCaptionType values.Methods inherited from class com.azure.core.util.ExpandableStringEnum
equals, fromString, getValue, hashCode, toString, values
-
Field Details
-
NONE
Do not return captions for the query. -
EXTRACTIVE
Extracts captions from the matching documents that contain passages relevant to the search query.
-
-
Constructor Details
-
QueryCaptionType
Deprecated.Use thefromString(String)factory method.Creates a new instance of QueryCaptionType value.
-
-
Method Details
-
fromString
Creates or finds a QueryCaptionType from its string representation.- Parameters:
name- a name to look for.- Returns:
- the corresponding QueryCaptionType.
-
values
Gets known QueryCaptionType values.- Returns:
- known QueryCaptionType values.
-
fromString(String)factory method.