Method SearchMeta
SearchMeta<TInput, TOutput>(PipelineDefinition<TInput, TOutput>, SearchDefinition<TOutput>, string, SearchCountOptions)
Appends a $searchMeta stage to the pipeline.
public static PipelineDefinition<TInput, SearchMetaResult> SearchMeta<TInput, TOutput>(this PipelineDefinition<TInput, TOutput> pipeline, SearchDefinition<TOutput> query, string indexName = null, SearchCountOptions count = null)
Parameters
pipeline
PipelineDefinition<TInput, TOutput>The pipeline.
query
SearchDefinition<TOutput>The search definition.
indexName
stringThe index name.
count
SearchCountOptionsThe count options.
Returns
- PipelineDefinition<TInput, SearchMetaResult>
A new pipeline with an additional stage.
Type Parameters
TInput
The type of the input documents.
TOutput
The type of the output documents.