hasAll( )


Creates a search filter for matching documents whose specified field value contains all of the specified values.

The hasAll() function is chained to a WixSearchFilterBuilder to create a WixSearchFilter. You can use the filter to match documents where the values of the array in the specified field equal all of the specified values.

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

Method Declaration
Copy
Method Parameters
fieldstringRequired

The field whose value will be compared with values. The field type must be an array of strings.


valuesArray<string>Required

The values to match against.

Returns
Return Type:WixSearchFilter
Was this helpful?
Yes
No