### YamlMime:JavaType uid: "com.azure.search.documents.models.QueryCaptionResult" fullName: "com.azure.search.documents.models.QueryCaptionResult" name: "QueryCaptionResult" nameWithType: "QueryCaptionResult" summary: "Captions are the most representative passages from the document relatively to the search query." inheritances: - "" inheritedClassMethods: - classRef: "java.lang.Object" methodsRef: - "clone" - "equals" - "finalize" - "getClass" - "hashCode" - "notify" - "notifyAll" - "toString" - "wait" - "wait" - "wait" syntax: "public final class **QueryCaptionResult**
implements <>" constructors: - uid: "com.azure.search.documents.models.QueryCaptionResult.QueryCaptionResult()" fullName: "com.azure.search.documents.models.QueryCaptionResult.QueryCaptionResult()" name: "QueryCaptionResult()" nameWithType: "QueryCaptionResult.QueryCaptionResult()" summary: "Creates an instance of QueryCaptionResult class." syntax: "public QueryCaptionResult()" desc: "Creates an instance of QueryCaptionResult class." methods: - uid: "com.azure.search.documents.models.QueryCaptionResult.fromJson(com.azure.json.JsonReader)" fullName: "com.azure.search.documents.models.QueryCaptionResult.fromJson(JsonReader jsonReader)" name: "fromJson(JsonReader jsonReader)" nameWithType: "QueryCaptionResult.fromJson(JsonReader jsonReader)" summary: "Reads an instance of QueryCaptionResult from the JsonReader." modifiers: - "static" parameters: - description: "The JsonReader being read." name: "jsonReader" type: "" syntax: "public static QueryCaptionResult fromJson(JsonReader jsonReader)" exceptions: - description: "If an error occurs while reading the QueryCaptionResult." type: "IOException" desc: "Reads an instance of QueryCaptionResult from the JsonReader." returns: description: "An instance of QueryCaptionResult if the JsonReader was pointing to an instance of it, or null if it was\n pointing to JSON null." type: "" - uid: "com.azure.search.documents.models.QueryCaptionResult.getAdditionalProperties()" fullName: "com.azure.search.documents.models.QueryCaptionResult.getAdditionalProperties()" name: "getAdditionalProperties()" nameWithType: "QueryCaptionResult.getAdditionalProperties()" summary: "Get the additionalProperties property: Captions are the most representative passages from the document relatively to the search query." syntax: "public Map getAdditionalProperties()" desc: "Get the additionalProperties property: Captions are the most representative passages from the document relatively to the search query. They are often used as document summary. Captions are only returned for queries of type \\`semantic\\`." returns: description: "the additionalProperties value." type: "Map<String,Object>" - uid: "com.azure.search.documents.models.QueryCaptionResult.getHighlights()" fullName: "com.azure.search.documents.models.QueryCaptionResult.getHighlights()" name: "getHighlights()" nameWithType: "QueryCaptionResult.getHighlights()" summary: "Get the highlights property: Same text passage as in the Text property with highlighted phrases most relevant to the query." syntax: "public String getHighlights()" desc: "Get the highlights property: Same text passage as in the Text property with highlighted phrases most relevant to the query." returns: description: "the highlights value." type: "String" - uid: "com.azure.search.documents.models.QueryCaptionResult.getText()" fullName: "com.azure.search.documents.models.QueryCaptionResult.getText()" name: "getText()" nameWithType: "QueryCaptionResult.getText()" summary: "Get the text property: A representative text passage extracted from the document most relevant to the search query." syntax: "public String getText()" desc: "Get the text property: A representative text passage extracted from the document most relevant to the search query." returns: description: "the text value." type: "String" - uid: "com.azure.search.documents.models.QueryCaptionResult.toJson(com.azure.json.JsonWriter)" fullName: "com.azure.search.documents.models.QueryCaptionResult.toJson(JsonWriter jsonWriter)" name: "toJson(JsonWriter jsonWriter)" nameWithType: "QueryCaptionResult.toJson(JsonWriter jsonWriter)" parameters: - name: "jsonWriter" type: "" syntax: "public JsonWriter toJson(JsonWriter jsonWriter)" exceptions: - type: "IOException" returns: type: "" type: "class" desc: "Captions are the most representative passages from the document relatively to the search query. They are often used as document summary. Captions are only returned for queries of type \\`semantic\\`." implements: - "<>" metadata: {} package: "com.azure.search.documents.models" artifact: com.azure:azure-search-documents:11.7.1