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