SearchModelFactory.QueryAnswerResult Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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
Azure SDK for .NET