Table of Contents

Method SearchMeta

Namespace
MongoDB.Driver.Linq
Assembly
MongoDB.Driver.dll

SearchMeta<TSource>(IMongoQueryable<TSource>, SearchDefinition<TSource>, string, SearchCountOptions)

Appends a $searchMeta stage to the LINQ pipeline.

public static IMongoQueryable<SearchMetaResult> SearchMeta<TSource>(this IMongoQueryable<TSource> source, SearchDefinition<TSource> searchDefinition, string indexName = null, SearchCountOptions count = null)

Parameters

source IMongoQueryable<TSource>

A sequence of values.

searchDefinition SearchDefinition<TSource>

The search definition.

indexName string

The index name.

count SearchCountOptions

The count options.

Returns

IMongoQueryable<SearchMetaResult>

The queryable with a new stage appended.

Type Parameters

TSource

The type of the elements of source.