SearchModelFactory.QueryAnswerResult Method

Definition

Overloads

Name Description
QueryAnswerResult(Nullable<Double>, String, String, String, IReadOnlyDictionary<String,Object>)

Initializes a new instance of QueryAnswerResult.

QueryAnswerResult(Nullable<Double>, String, String, String, IDictionary<String,Object>)

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.

QueryAnswerResult(Nullable<Double>, String, String, String, IReadOnlyDictionary<String,Object>)

Source:
SearchModelFactory.cs
Source:
SearchModelFactory.cs

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

QueryAnswerResult(Nullable<Double>, String, String, String, IDictionary<String,Object>)

Source:
SearchModelFactory.cs

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 static Azure.Search.Documents.Models.QueryAnswerResult QueryAnswerResult(double? score = default, string key = default, string text = default, string highlights = default, System.Collections.Generic.IDictionary<string,object> additionalProperties = default);
static member QueryAnswerResult : Nullable<double> * string * string * string * System.Collections.Generic.IDictionary<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 IDictionary(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
IDictionary<String,Object>

Returns

A new QueryAnswerResult instance for mocking.

Applies to