Table of Contents

Method SearchMeta

Namespace
MongoDB.Driver
Assembly
MongoDB.Driver.dll

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

Appends a $searchMeta stage to the pipeline.

public static PipelineDefinition<TInput, SearchMetaResult> SearchMeta<TInput, TOutput>(this PipelineDefinition<TInput, TOutput> pipeline, SearchDefinition<TOutput> query, string indexName = null, SearchCountOptions count = null)

Parameters

pipeline PipelineDefinition<TInput, TOutput>

The pipeline.

query SearchDefinition<TOutput>

The search definition.

indexName string

The index name.

count SearchCountOptions

The count options.

Returns

PipelineDefinition<TInput, SearchMetaResult>

A new pipeline with an additional stage.

Type Parameters

TInput

The type of the input documents.

TOutput

The type of the output documents.