CreateNotQuery

SearchQuery.CreateNotQuery method

Creates an inverted query that will find all documents in an index except the ones that will be found for the original query.

public static SearchQuery CreateNotQuery(SearchQuery query)
Parameter Type Description
query SearchQuery The query to invert.

Return Value

A combined NOT query.

See Also