Method SearchMeta
SearchMeta<TResult>(IAggregateFluent<TResult>, SearchDefinition<TResult>, FieldDefinition<TResult>, string, SearchCountOptions)
Appends a $searchMeta stage to the pipeline.
public static IAggregateFluent<SearchMetaResult> SearchMeta<TResult>(this IAggregateFluent<TResult> aggregate, SearchDefinition<TResult> searchDefinition, FieldDefinition<TResult> returnScope, string indexName = null, SearchCountOptions count = null)
Parameters
aggregateIAggregateFluent<TResult>The aggregate.
searchDefinitionSearchDefinition<TResult>The search definition.
returnScopeFieldDefinition<TResult>The level of nested documents to return.
indexNamestringThe index name.
countSearchCountOptionsThe count options.
Returns
- IAggregateFluent<SearchMetaResult>
The fluent aggregate interface.
Type Parameters
TResultThe type of the result.
SearchMeta<TResult>(IAggregateFluent<TResult>, SearchDefinition<TResult>, Expression<Func<TResult, object>>, string, SearchCountOptions)
Appends a $searchMeta stage to the pipeline.
public static IAggregateFluent<SearchMetaResult> SearchMeta<TResult>(this IAggregateFluent<TResult> aggregate, SearchDefinition<TResult> searchDefinition, Expression<Func<TResult, object>> returnScope, string indexName = null, SearchCountOptions count = null)
Parameters
aggregateIAggregateFluent<TResult>The aggregate.
searchDefinitionSearchDefinition<TResult>The search definition.
returnScopeExpression<Func<TResult, object>>The level of nested documents to return.
indexNamestringThe index name.
countSearchCountOptionsThe count options.
Returns
- IAggregateFluent<SearchMetaResult>
The fluent aggregate interface.
Type Parameters
TResultThe type of the result.