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