Table of Contents

Class SearchScoreDetails

Namespace
MongoDB.Driver.Search
Assembly
MongoDB.Driver.dll

Represents the scoreDetails object for a document in the result.

public sealed class SearchScoreDetails
Inheritance
SearchScoreDetails
Inherited Members

Constructors

SearchScoreDetails(double, string, SearchScoreDetails[])

Initializes a new instance of the SearchScoreDetails class.

public SearchScoreDetails(double value, string description, SearchScoreDetails[] details)

Parameters

value double

Contribution towards the score by a subset of the scoring formula.

description string

Subset of the scoring formula.

details SearchScoreDetails[]

Breakdown of the score for each match in the document.

Properties

Description

Gets the subset of the scoring formula including details about how the document was scored and factors considered in calculating the score.

[BsonElement("description")]
public string Description { get; }

Property Value

string

Details

Breakdown of the score for each match in the document based on the subset of the scoring formula. (if any).

[BsonDefaultValue(null)]
[BsonElement("details")]
public SearchScoreDetails[] Details { get; }

Property Value

SearchScoreDetails[]

Value

Gets the contribution towards the score by a subset of the scoring formula.

[BsonElement("value")]
public double Value { get; }

Property Value

double