SearchModelFactory.SemanticSearchResult Method

Definition

Initializes a new instance of SemanticSearchResult.

public static Azure.Search.Documents.Models.SemanticSearchResult SemanticSearchResult(double? rerankerScore, double? rerankerBoostedScore, System.Collections.Generic.IReadOnlyList<Azure.Search.Documents.Models.QueryCaptionResult> captions);
static member SemanticSearchResult : Nullable<double> * Nullable<double> * System.Collections.Generic.IReadOnlyList<Azure.Search.Documents.Models.QueryCaptionResult> -> Azure.Search.Documents.Models.SemanticSearchResult
Public Shared Function SemanticSearchResult (rerankerScore As Nullable(Of Double), rerankerBoostedScore As Nullable(Of Double), captions As IReadOnlyList(Of QueryCaptionResult)) As SemanticSearchResult

Parameters

rerankerScore
Nullable<Double>

The relevance score computed by the semantic ranker for the top search results.

rerankerBoostedScore
Nullable<Double>

The relevance score computed by boosting the Reranker Score. Search results are sorted by the RerankerScore/RerankerBoostedScore based on useScoringProfileBoostedRanking in the Semantic Config.

captions
IReadOnlyList<QueryCaptionResult>

Captions are the most representative passages from the document relatively to the search query.

Returns

A new SemanticSearchResult instance for mocking.

Applies to