> 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-stores-frontend



## Article: Stores Schema for Wix Search

## Article Link: https://dev.wix.com/docs/velo/apis/wix-stores-frontend/stores-schema-for-wix-search.md

## Article Content:

<!-- This article was published using the Doc Push single-sourcing tool. Any changes to this article MUST be made in the source file. Find it at www.github.com/wix-private/velo-docs.-->



# Schema for Wix Search





This article describes the Wix Store product fields you can [search](https://www.wix.com/velo/reference/wix-search.html#search), [sort](https://www.wix.com/velo/reference/wix-search.WixSearchBuilder.html#ascending), [filter](https://www.wix.com/velo/reference/wix-search.html#filter), and [apply facets](https://www.wix.com/velo/reference/wix-search.WixSearchBuilder.html#facets) to when using the [wix-search API](https://www.wix.com/velo/reference/wix-search.html).

To search Wix Store products on your site, set the search document type as `"Stores/Products"`:

```javascript
wixSearch.search(phrase)
  .documentType("Stores/Products")
  .find()
  .then( (results) => {
    // handle the results
  } );
```

> **Note**
> The Stores/Products fields supported by wix-search are not identical to the fields in your site's [Stores/Products collection](https://support.wix.com/en/article/velo-wix-stores-products-collection-fields).

The following fields appear in each matching search result [document](/wix-search/wix-search-result/documents) when searching Wix Store products:

#### documentType 

**Description**: Document type that was searched. In this case, "Stores/Products".  
**Type**: String  
**Can search the content of this field**: No  
**Can facet**: No  
**Can sort**: No  
**Can filter**: No

#### \_id 

**Description**: Product ID.  
**Type**: String  
**Can search the content of this field**: No  
**Can facet**: No  
**Can sort**: No  
**Can filter**: No

#### title 

**Description**: Product name.  
**Type**: String  
**Can search the content of this field**: Yes  
**Can facet**: No  
**Can sort**: No  
**Can filter**: No

#### description 

**Description**: Product description.  
**Type**: String  
**Can search the content of this field**: Yes  
**Can facet**: No  
**Can sort**: No  
**Can filter**: No

#### url 

**Description**: Relative URL of the product's page on your site.  
**Type**: String  
**Can search the content of this field**: No  
**Can facet**: No  
**Can sort**: No  
**Can filter**: No

#### image 

**Description**: File source of the main media image for this product.  
**Type**: String  
**Can search the content of this field**: No  
**Can facet**: No  
**Can sort**: No  
**Can filter**: No

#### sku 

**Description**: Product's stock keeping unit number.  
**Type**: String  
**Can search the content of this field**: Yes  
**Can facet**: Yes  
**Can sort**: Yes  
**Can filter**: in, eq, ne, gt, ge, lt, le 

#### inStock 

**Description**: Indicates whether the product is in stock.  
**Type**: Boolean  
**Can search the content of this field**: No  
**Can facet**: Yes  
**Can sort**: Yes  
**Can filter**: eq, ne 

#### options 

**Description**: Product options and choices.  
**Type**: Array of Strings  
**Can search the content of this field**: Yes  
**Can facet**: Yes  
**Can sort**: No  
**Can filter**: hasSome, hasAll 

The `options` array contains product option names (for example, `Color`) followed by the descriptions of the choices for that option (for example, `blue`, `black`). If there is more than one option for a product, the options and their choice descriptions are listed in sequence.

The following is an example of an `options` array for a product with 2 options: `Color` and `Size`:

```javascript
options: ["Color", "Orange", "Blue", "Size", "Small", "Medium", "Large"]
```

> **Note**
> Faceting products with more than 1 product option may return unexpected results. 

#### collections 

**Description**: Collections the product belongs to.  
**Type**: Array of Strings  
**Can search the content of this field**: Yes  
**Can facet**: Yes  
**Can sort**: No  
**Can filter**: hasSome, hasAll 

#### onSale 

**Description**: Indicates whether the product is on sale.  
**Type**: Boolean  
**Can search the content of this field**: No  
**Can facet**: Yes  
**Can sort**: Yes  
**Can filter**: eq, ne
