in( )


Refines a search to match documents whose specified field value equals any of the specified values.

The in() function refines a WixSearchBuilder to only match documents where the value of the specified field equals any of the specified values.

Matching strings with in() is case sensitive, so "text" is not equal to "Text".

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

Method Declaration
Copy
Method Parameters
fieldstringRequired

The field whose value will be compared with values. The field must be of type string or number.


valuesArray<string>Required

The values to match against.

Was this helpful?
Yes
No