or( )

Refines a search to match documents that meet the condition of any of the specified filters.

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

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

If other filtering functions were previously used in the same WixSearchBuilder instance, or() is applied using an and condition with previously set filters.

Method Declaration
Method Parameters

One or more filters.

Was this helpful?