1 /**
2 * @schema AdminSearchIndex
3 * type: object
4 * description: A search index registered in the application, and the fields it stores.
5 * x-schemaName: AdminSearchIndex
6 * required:
7 * - name
8 * - entity
9 * - provider
10 * - status
11 * - fields
12 * properties:
13 * name:
14 * type: string
15 * title: name
16 * description: The index's unique name, which is the name you pass to `query.search({ entity })` to search the index.
17 * entity:
18 * type: string
19 * title: entity
20 * description: The name of the data model that `query.graph` uses as an entry point to retrieve fields that aren't stored in the index.
21 * provider:
22 * type: string
23 * title: provider
24 * description: The identifier of the Search Module Provider backing this index, such as `pg-search`.
25 * externalDocs:
26 * url: https://docs.medusajs.com/resources/infrastructure-modules/search/providers
27 * description: Learn about Search Module Providers
28 * status:
29 * type: string
30 * description: The index's lifecycle status. `pending` means the index was created but isn't filled yet, `building` means a seed or reindexing is in progress, `ready` means the index is serving
31 * documents, and `error` means the last seed or reindexing failed.
32 * enum:
33 * - error
34 * - pending
35 * - building
36 * - ready
37 * fields:
38 * type: array
39 * description: The leaf fields stored in the index, each with the capabilities declared on it.
40 * externalDocs:
41 * url: https://docs.medusajs.com/resources/infrastructure-modules/search/index-definitions/fields
42 * description: Learn about search index field types and modifiers
43 * items:
44 * $ref: "#/components/schemas/AdminSearchIndexField"
45 *
46 */
47