Share via


QueryAnswerResult Class

Definition

An answer is a text passage extracted from the contents of the most relevant documents that matched the query. Answers are extracted from the top search results. Answer candidates are scored and the top answers are selected.

public class QueryAnswerResult
public class QueryAnswerResult : System.ClientModel.Primitives.IJsonModel<Azure.Search.Documents.Models.QueryAnswerResult>, System.ClientModel.Primitives.IPersistableModel<Azure.Search.Documents.Models.QueryAnswerResult>
type QueryAnswerResult = class
type QueryAnswerResult = class
    interface IJsonModel<QueryAnswerResult>
    interface IPersistableModel<QueryAnswerResult>
Public Class QueryAnswerResult
Public Class QueryAnswerResult
Implements IJsonModel(Of QueryAnswerResult), IPersistableModel(Of QueryAnswerResult)
Inheritance
QueryAnswerResult
Implements

Properties

AdditionalProperties

Additional Properties.

Highlights

Same text passage as in the Text property with highlighted text phrases most relevant to the query.

Key

The key of the document the answer was extracted from.

Score

The score value represents how relevant the answer is to the query relative to other answers returned for the query.

Text

The text passage extracted from the document contents as the answer.

Methods

JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)

Explicit Interface Implementations

IJsonModel<QueryAnswerResult>.Create(Utf8JsonReader, ModelReaderWriterOptions)

Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.

IJsonModel<QueryAnswerResult>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<QueryAnswerResult>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<QueryAnswerResult>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

IPersistableModel<QueryAnswerResult>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to