Table of Contents

Method Render

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

Render(SearchDefinitionRenderContext<TDocument>)

Renders the score function to a BsonDocument.

[Obsolete("Use Render(RenderArgs<TDocument> args) overload instead.")]
public virtual BsonDocument Render(SearchDefinitionRenderContext<TDocument> renderContext)

Parameters

renderContext SearchDefinitionRenderContext<TDocument>

The render arguments.

Returns

BsonDocument

A BsonDocument.

Render(RenderArgs<TDocument>)

Renders the score function to a BsonDocument.

public abstract BsonDocument Render(RenderArgs<TDocument> args)

Parameters

args RenderArgs<TDocument>

The render arguments.

Returns

BsonDocument

A BsonDocument.