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