CreateAndQuery

CreateAndQuery(SearchQuery, SearchQuery)

Creates a combined query that will find only documents which will be found for each original query.

public static SearchQuery CreateAndQuery(SearchQuery leftQuery, SearchQuery rightQuery)
Parameter Type Description
leftQuery SearchQuery The left child query.
rightQuery SearchQuery The right child query.

Return Value

A combined AND query.

See Also


CreateAndQuery(params SearchQuery[])

Creates a combined query that will find only documents which will be found for each original query.

public static SearchQuery CreateAndQuery(params SearchQuery[] queries)
Parameter Type Description
queries SearchQuery[] The child queries.

Return Value

A combined AND query.

See Also