expression( )


Specifies the text to search in the collection.

The expression() method sets the search query.

Search terms are separated by whitespace. For example, the expression red car white roof includes four search terms: red, car, white, and roof. Use andMode() to require all terms to be present, or orMode() to require at least one term to be present.

Method Declaration
Copy
Method Parameters
queryTextstring

Text to search in the collection.

Returns
Return Type:WixDataSearch
Errors

This method doesn't return any custom errors, but may return standard errors. Learn more about standard Wix errors.

Did this help?