Creates a search filter for matching documents that meet the conditions of all of the specified filters.
The add()
function joins WixSearchFilters
with an inclusive and
condition
and creates another WixSearchFilter
. A search with an and()
returns all the documents that match the conditions of all of the filters.
function and(filters: Array<WixSearchFilter>): WixSearchFilter;
One or more search filters.
import wixSearch from "wix-search";
// ...
const andFilter = wixSearch.filter().and(myFilter1, myFilter2);
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.