Method Must
Must(IEnumerable<SearchDefinition<TDocument>>)
Adds clauses which must match to produce results.
public CompoundSearchDefinitionBuilder<TDocument> Must(IEnumerable<SearchDefinition<TDocument>> clauses)
Parameters
clauses
IEnumerable<SearchDefinition<TDocument>>The clauses.
Returns
- CompoundSearchDefinitionBuilder<TDocument>
The compound search definition builder.
Must(params SearchDefinition<TDocument>[])
Adds clauses which must match to produce results.
public CompoundSearchDefinitionBuilder<TDocument> Must(params SearchDefinition<TDocument>[] clauses)
Parameters
clauses
SearchDefinition<TDocument>[]The clauses.
Returns
- CompoundSearchDefinitionBuilder<TDocument>
The compound search definition builder.