Creates a search filter for matching documents that do not meet the conditions of all of the specified filters.
The not()
function joins WixSearchFilters
and adds a not
condition.
A search with a not()
returns all the documents that don't match all of the filters passed to the not()
function. The
not()
function first applies an and
condition between the filter parameters and then negates them.
function not(filters: Array<WixSearchFilter>): WixSearchFilter;
One or more filters.
import wixSearch from "wix-search";
// ...
const notFilter = wixSearch.filter().not(myFilter1, myFilter2);
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.