> 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: Indexes

# Type: Index Object

# Link: https://dev.wix.com/docs/api-reference/business-solutions/cms/collection-management/indexes/index-object.md

## Description: An index is a map of a collection's data, organized according to specific fields to increase query speed.

## Schema:

```json
 Type: Index Object | type: Index
 Description: An index is a map of a collection's data, organized according to specific fields to increase query speed.
       - name: id  | type: string | description: ID of the index.
       - name: name  | type: string | description: Name of the index.
       - name: fields  | type: Array<Field> | description: Fields for which the index is defined.  Max: 3 fields (for a unique index: 1 field)
           - name: path  | type: string | description: Path of the field to index. For example: `title` or `options.price`.
           - name: order  | type: string | description: Sort order for the index. Base on how the data is regularly queried.  Default: `ASC`
               enum: ASC, DESC
       - name: status  | type: string | description: Current status of the index.
           enum: UNKNOWN, BUILDING, ACTIVE, DROPPING, DROPPED, FAILED, INVALID
       - name: failure  | type: Failure | description: Contains details about the reasons for failure when `status` is `FAILED`.
           - name: code  | type: string | description: Error code. - `WDE0112`: Unknown error while building collection index. - `WDE0113`: Duplicate key error while building collection index. - `WDE0114`: Document too large while building collection index.
           - name: description  | type: string | description: Description of the failure.
           - name: itemId  | type: string | description: ID of the data item that caused the failure. For example, if `unique` is `true`, the ID of an item containing a duplicate value.
               - name: value  | type: string | description: 
       - name: unique  | type: boolean | description: Whether the index enforces uniqueness of values in the field for which it's defined. If `true`, the index can have only 1 field.  Default: `false`
       - name: caseInsensitive  | type: boolean | description: Whether the index ignores case.  Default: `false`
       - name: source  | type: string | description: Source of the index. See index sources in [Index Types](https://dev.wix.com/docs/api-reference/business-solutions/cms/indexes/index-types.md#index-sources).  Default: `USER`
           enum: SYSTEM, USER, AUTO

```