hasSome( )


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

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

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

If other filters were previously used in the same WixSearchBuilder instance, hasSome() 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 type must be an array of strings.


valuesArray<string>Required

The values to match against.

Returns
Return Type:WixSearchBuilder
Did this help?