Table of Contents

Method SearchMeta

Namespace
MongoDB.Driver
Assembly
MongoDB.Driver.dll

SearchMeta<TResult>(IAggregateFluent<TResult>, SearchDefinition<TResult>, FieldDefinition<TResult>, string, SearchCountOptions)

Appends a $searchMeta stage to the pipeline.

public static IAggregateFluent<SearchMetaResult> SearchMeta<TResult>(this IAggregateFluent<TResult> aggregate, SearchDefinition<TResult> searchDefinition, FieldDefinition<TResult> returnScope, string indexName = null, SearchCountOptions count = null)

Parameters

aggregate IAggregateFluent<TResult>

The aggregate.

searchDefinition SearchDefinition<TResult>

The search definition.

returnScope FieldDefinition<TResult>

The level of nested documents to return.

indexName string

The index name.

count SearchCountOptions

The count options.

Returns

IAggregateFluent<SearchMetaResult>

The fluent aggregate interface.

Type Parameters

TResult

The type of the result.

SearchMeta<TResult>(IAggregateFluent<TResult>, SearchDefinition<TResult>, Expression<Func<TResult, object>>, string, SearchCountOptions)

Appends a $searchMeta stage to the pipeline.

public static IAggregateFluent<SearchMetaResult> SearchMeta<TResult>(this IAggregateFluent<TResult> aggregate, SearchDefinition<TResult> searchDefinition, Expression<Func<TResult, object>> returnScope, string indexName = null, SearchCountOptions count = null)

Parameters

aggregate IAggregateFluent<TResult>

The aggregate.

searchDefinition SearchDefinition<TResult>

The search definition.

returnScope Expression<Func<TResult, object>>

The level of nested documents to return.

indexName string

The index name.

count SearchCountOptions

The count options.

Returns

IAggregateFluent<SearchMetaResult>

The fluent aggregate interface.

Type Parameters

TResult

The type of the result.