Table of Contents

Method SearchMeta

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

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

Appends a $searchMeta stage to the LINQ pipeline.

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

Parameters

source IQueryable<TSource>

A sequence of values.

searchDefinition SearchDefinition<TSource>

The search definition.

indexName string

The index name.

count SearchCountOptions

The count options.

Returns

IQueryable<SearchMetaResult>

The queryable with a new stage appended.

Type Parameters

TSource

The type of the elements of source.