Megosztás a következőn keresztül:


SearchModelFactory.QueryAnswerResult Method

Definition

Initializes a new instance of QueryAnswerResult.

public static Azure.Search.Documents.Models.QueryAnswerResult QueryAnswerResult (double? score = default, string key = default, string text = default, string highlights = default, System.Collections.Generic.IReadOnlyDictionary<string,object> additionalProperties = default);
static member QueryAnswerResult : Nullable<double> * string * string * string * System.Collections.Generic.IReadOnlyDictionary<string, obj> -> Azure.Search.Documents.Models.QueryAnswerResult
Public Shared Function QueryAnswerResult (Optional score As Nullable(Of Double) = Nothing, Optional key As String = Nothing, Optional text As String = Nothing, Optional highlights As String = Nothing, Optional additionalProperties As IReadOnlyDictionary(Of String, Object) = Nothing) As QueryAnswerResult

Parameters

score
Nullable<Double>

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

key
String

The key of the document the answer was extracted from.

text
String

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

highlights
String

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

additionalProperties
IReadOnlyDictionary<String,Object>

Additional Properties.

Returns

A new QueryAnswerResult instance for mocking.

Applies to