and( )


Refines a search to match documents that meet the conditions of all of the specified filters.

The and() function joins WixSearchFilters with an inclusive and condition and adds them to a WixSearchBuilder. A search with an and() returns all the documents that match the condition of all of the filters.

Note that when chaining multiple WixSearchBuilder filtering functions to a search, an and condition is assumed. In such cases, you do not need to add a call to the and() function. and() is useful for combining compound filters created using WixSearchFilterBuilder filtering functions.

If the and() function contains a single filter, the filter is applied directly to the WixSearchBuilder.

Method Declaration
Copy
Method Parameters
filtersArray<WixSearchFilter>Required

One or more filters.

Was this helpful?
Yes
No