Table of Contents

Method SearchMeta

Namespace
MongoDB.Driver
Assembly
MongoDB.Driver.dll

SearchMeta<TInput>(SearchDefinition<TInput>, string, SearchCountOptions)

Creates a $searchMeta stage.

public static PipelineStageDefinition<TInput, SearchMetaResult> SearchMeta<TInput>(SearchDefinition<TInput> searchDefinition, string indexName = null, SearchCountOptions count = null)

Parameters

searchDefinition SearchDefinition<TInput>

The search definition.

indexName string

The index name.

count SearchCountOptions

The count options.

Returns

PipelineStageDefinition<TInput, SearchMetaResult>

The stage.

Type Parameters

TInput

The type of the input documents.