QueryCaptionType Class
- java.
lang. Object - com.
azure. core. util. ExpandableStringEnum<T> - com.
azure. search. documents. models. QueryCaptionType
- com.
- com.
public final class QueryCaptionType
extends 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`.
Field Summary
Modifier and Type | Field and Description |
---|---|
static final
Query |
EXTRACTIVE
Extracts captions from the matching documents that contain passages relevant to the search query. |
static final
Query |
NONE
Do not return captions for the query. |
Constructor Summary
Constructor | Description |
---|---|
QueryCaptionType() |
Deprecated
Use the fromString(String name) factory method.
Creates a new instance of Query |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Query |
fromString(String name)
Creates or finds a Query |
static
Collection<Query |
values()
Gets known Query |
Methods inherited from ExpandableStringEnum
Methods inherited from java.lang.Object
Field Details
EXTRACTIVE
public static final QueryCaptionType EXTRACTIVE
Extracts captions from the matching documents that contain passages relevant to the search query.
NONE
public static final QueryCaptionType NONE
Do not return captions for the query.
Constructor Details
QueryCaptionType
@Deprecated
public QueryCaptionType()
Deprecated
Creates a new instance of QueryCaptionType value.
Method Details
fromString
public static QueryCaptionType fromString(String name)
Creates or finds a QueryCaptionType from its string representation.
Parameters:
Returns:
values
public static Collection
Gets known QueryCaptionType values.
Returns:
Applies to
Azure SDK for Java