> To build or manage a Wix site with an AI agent, follow https://www.wix.com/headless/skill.md
> It builds a new Wix site or puts your own site online, from a prompt, and keeps changing it afterwards. The pages are code in any web technology, and Wix runs the backend.
> It works through the Wix plugin (the Wix MCP and the Wix skills), the Wix CLI or no Wix login, and puts the site live on Wix hosting or on another host.
> Business features include a store, bookings, events and tickets, a restaurant, a blog, forms, members and many more.
> Read the Wix skills online at https://www.wix.com/skills
> 
> Portal Navigation:
> 
> - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version.
> - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages).
> - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`).
> - If a reference page seems to be missing its schema (parameters, return types, or type definitions), append `?schema=true` to its `.md` URL (e.g. `https://dev.wix.com/docs/contexts/contexts/stores/category-info/use-category-info-context.md?schema=true`).
> - Top-level index of all portals: https://dev.wix.com/docs/llms.txt
> - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt

## Resource: wix-search



## Article: Introduction

## Article Link: https://dev.wix.com/docs/velo/apis/wix-search/introduction.md

## Article Content:

# Introduction
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](https://dev.wix.com/docs/velo/apis/wix-search/filter.md), [sort](https://dev.wix.com/docs/velo/apis/wix-search/wix-search-builder/ascending.md), 
 and apply [facets](https://dev.wix.com/docs/velo/apis/wix-search/wix-search-builder/facets.md) (categorize) the results of a site search.

 To enable Search API functionality for your site, you must add the [Wix Site Search application](https://support.wix.com/en/article/about-wix-site-search) to
 your site. After installing the app you can delete the Search Bar, but make sure to leave the  [Search Results page](https://support.wix.com/en/article/about-wix-site-search#understanding-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:

 + **Site pages:** All regular and dynamic site pages with [SEO indexing enabled](https://support.wix.com/en/article/enabling-search-engines-eg-google-to-find-your-site). Note that Wix site pages are indexed by default. Custom router pages and some Wix app pages are not currently included in searches.
 + **Wix app content:** Pages whose content is extracted from the following database collections: Blog/Posts, Bookings/Services, Forum/Posts & Forum/Comments, and Stores/Products.


 To use the search module, import `wixSearch` from the `wix-search` module:

   ``` javascript
   import wixSearch from 'wix-search';
   ```