The wix-search API allows you to create a custom site search experience for your site visitors. For example, you can use a text input element to get a search phrase from site visitors, search your store products for the phrase, and display the matching store products in a repeater.
You can filter, sort, and apply facets (categorize) the results of a site search.
To enable Search API functionality for your site, you must add the Wix Site Search application to your site. After installing the app you can delete the Search Bar, but make sure to leave the Search Results page on your site. Note that you cannot use the Search API to control the Wix Search Bar or Search Results page.
The Search API searches supported site documents and returns matching search results in Document
form.
The following documents are currently supported:
To use the search module, import wixSearch
from the wix-search
module: