azure-docs-sdk-java/docs-ref-autogen/com.azure.search.documents....

99 строки
7.7 KiB
YAML

### YamlMime:JavaType
uid: "com.azure.search.documents.models.QueryAnswerType"
fullName: "com.azure.search.documents.models.QueryAnswerType"
name: "QueryAnswerType"
nameWithType: "QueryAnswerType"
summary: "This parameter is only valid if the query type is \\`semantic\\`."
inheritances:
- "<xref href=\"java.lang.Object?displayProperty=fullName\" data-throw-if-not-resolved=\"False\" />"
- "<xref href=\"com.azure.core.util.ExpandableStringEnum?displayProperty=fullName\" data-throw-if-not-resolved=\"False\" />"
inheritedClassMethods:
- classRef: "<xref href=\"com.azure.core.util.ExpandableStringEnum?alt=com.azure.core.util.ExpandableStringEnum&text=ExpandableStringEnum\" data-throw-if-not-resolved=\"False\" />"
methodsRef:
- "<xref href=\"com.azure.core.util.ExpandableStringEnum.<T>fromString(java.lang.String,java.lang.Class<T>)?alt=com.azure.core.util.ExpandableStringEnum.<T>fromString&text=<T>fromString\" data-throw-if-not-resolved=\"False\" />"
- "<xref href=\"com.azure.core.util.ExpandableStringEnum.<T>values(java.lang.Class<T>)?alt=com.azure.core.util.ExpandableStringEnum.<T>values&text=<T>values\" data-throw-if-not-resolved=\"False\" />"
- "<xref href=\"com.azure.core.util.ExpandableStringEnum.equals(java.lang.Object)?alt=com.azure.core.util.ExpandableStringEnum.equals&text=equals\" data-throw-if-not-resolved=\"False\" />"
- "<xref href=\"com.azure.core.util.ExpandableStringEnum.getValue()?alt=com.azure.core.util.ExpandableStringEnum.getValue&text=getValue\" data-throw-if-not-resolved=\"False\" />"
- "<xref href=\"com.azure.core.util.ExpandableStringEnum.hashCode()?alt=com.azure.core.util.ExpandableStringEnum.hashCode&text=hashCode\" data-throw-if-not-resolved=\"False\" />"
- "<xref href=\"com.azure.core.util.ExpandableStringEnum.toString()?alt=com.azure.core.util.ExpandableStringEnum.toString&text=toString\" data-throw-if-not-resolved=\"False\" />"
- classRef: "java.lang.<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html\">Object</a>"
methodsRef:
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#clone--\">clone</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#finalize--\">finalize</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#getClass--\">getClass</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notify--\">notify</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notifyAll--\">notifyAll</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait--\">wait</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-\">wait</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-int-\">wait</a>"
syntax: "public final class **QueryAnswerType**</br> extends <xref href=\"com.azure.core.util.ExpandableStringEnum?alt=com.azure.core.util.ExpandableStringEnum&text=ExpandableStringEnum\" data-throw-if-not-resolved=\"False\" />&lt;<xref href=\"com.azure.search.documents.models.QueryAnswerType?alt=com.azure.search.documents.models.QueryAnswerType&text=QueryAnswerType\" data-throw-if-not-resolved=\"False\" />&gt;"
constructors:
- uid: "com.azure.search.documents.models.QueryAnswerType.QueryAnswerType()"
fullName: "com.azure.search.documents.models.QueryAnswerType.QueryAnswerType()"
name: "QueryAnswerType()"
nameWithType: "QueryAnswerType.QueryAnswerType()"
summary: "Creates a new instance of Query<wbr>Answer<wbr>Type value."
deprecatedTag: "Use the <xref uid=\"com.azure.search.documents.models.QueryAnswerType.fromString(java.lang.String)\" data-throw-if-not-resolved=\"false\" data-raw-source=\"#fromString(String)\"></xref> factory method."
syntax: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Deprecated.html\">@Deprecated</a></br>public QueryAnswerType()"
desc: "Creates a new instance of QueryAnswerType value."
hasDeprecatedTag: true
fields:
- uid: "com.azure.search.documents.models.QueryAnswerType.EXTRACTIVE"
fullName: "com.azure.search.documents.models.QueryAnswerType.EXTRACTIVE"
name: "EXTRACTIVE"
nameWithType: "QueryAnswerType.EXTRACTIVE"
summary: "Extracts answer candidates from the contents of the documents returned in response to a query expressed as a question in natural language."
modifiers:
- "static"
- "final"
field:
type: "<xref href=\"com.azure.search.documents.models.QueryAnswerType?alt=com.azure.search.documents.models.QueryAnswerType&text=QueryAnswerType\" data-throw-if-not-resolved=\"False\" />"
syntax: "public static final QueryAnswerType EXTRACTIVE"
desc: "Extracts answer candidates from the contents of the documents returned in response to a query expressed as a question in natural language."
- uid: "com.azure.search.documents.models.QueryAnswerType.NONE"
fullName: "com.azure.search.documents.models.QueryAnswerType.NONE"
name: "NONE"
nameWithType: "QueryAnswerType.NONE"
summary: "Do not return answers for the query."
modifiers:
- "static"
- "final"
field:
type: "<xref href=\"com.azure.search.documents.models.QueryAnswerType?alt=com.azure.search.documents.models.QueryAnswerType&text=QueryAnswerType\" data-throw-if-not-resolved=\"False\" />"
syntax: "public static final QueryAnswerType NONE"
desc: "Do not return answers for the query."
methods:
- uid: "com.azure.search.documents.models.QueryAnswerType.fromString(java.lang.String)"
fullName: "com.azure.search.documents.models.QueryAnswerType.fromString(String name)"
name: "fromString(String name)"
nameWithType: "QueryAnswerType.fromString(String name)"
summary: "Creates or finds a Query<wbr>Answer<wbr>Type from its string representation."
modifiers:
- "static"
parameters:
- description: "a name to look for."
name: "name"
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/String.html\">String</a>"
syntax: "public static QueryAnswerType fromString(String name)"
desc: "Creates or finds a QueryAnswerType from its string representation."
returns:
description: "the corresponding QueryAnswerType."
type: "<xref href=\"com.azure.search.documents.models.QueryAnswerType?alt=com.azure.search.documents.models.QueryAnswerType&text=QueryAnswerType\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.search.documents.models.QueryAnswerType.values()"
fullName: "com.azure.search.documents.models.QueryAnswerType.values()"
name: "values()"
nameWithType: "QueryAnswerType.values()"
summary: "Gets known Query<wbr>Answer<wbr>Type values."
modifiers:
- "static"
syntax: "public static Collection<QueryAnswerType> values()"
desc: "Gets known QueryAnswerType values."
returns:
description: "known QueryAnswerType values."
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/util/Collection.html\">Collection</a>&lt;<xref href=\"com.azure.search.documents.models.QueryAnswerType?alt=com.azure.search.documents.models.QueryAnswerType&text=QueryAnswerType\" data-throw-if-not-resolved=\"False\" />&gt;"
type: "class"
desc: "This parameter is only valid if the query type is \\`semantic\\`. If set, the query returns answers extracted from key passages in the highest ranked documents. The number of answers returned can be configured by appending the pipe character \\`|\\` followed by the \\`count-<number of answers>\\` option after the answers parameter value, such as \\`extractive|count-3\\`. Default count is 1. The confidence threshold can be configured by appending the pipe character \\`|\\` followed by the \\`threshold-<confidence threshold>\\` option after the answers parameter value, such as \\`extractive|threshold-0.9\\`. Default threshold is 0.7."
metadata: {}
package: "com.azure.search.documents.models"
artifact: com.azure:azure-search-documents:11.7.3