Method SearchMeta

| MongoDB CSharp Driver API Reference (original) (raw)

Namespace

MongoDB.Driver.Linq

Assembly

MongoDB.Driver.dll

SearchMeta(IQueryable, SearchDefinition, 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

A sequence of values.

searchDefinition SearchDefinition

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.