Method SearchMeta
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
stringThe index name.
count
SearchCountOptionsThe count options.
Returns
- IMongoQueryable<SearchMetaResult>
The queryable with a new stage appended.
Type Parameters
TSource
The type of the elements of
source
.