|
1
|
/** |
|
2
|
* @schema AdminReindexSearchIndex |
|
3
|
* type: object |
|
4
|
* description: The details of the reindexing to trigger on a search index. All properties are optional, so sending an empty request body rebuilds the entire index. |
|
5
|
* x-schemaName: AdminReindexSearchIndex |
|
6
|
* properties: |
|
7
|
* since: |
|
8
|
* type: string |
|
9
|
* format: date-time |
|
10
|
* title: since |
|
11
|
* description: Rebuild only the documents that changed at or after this date, as an ISO 8601 date-time string. Like `filters`, this always rebuilds the index in place, as a version built from a subset |
|
12
|
* of documents is never swapped in. |
|
13
|
* filters: |
|
14
|
* type: object |
|
15
|
* description: "Filters passed to the `seed` function of the index definition to rebuild only a subset of the index's documents. The accepted shape is defined by the index, such as `{ ids: |
|
16
|
* [\"prod_123\"] }` if the index supports it." |
|
17
|
* externalDocs: |
|
18
|
* url: https://docs.medusajs.com/resources/infrastructure-modules/search/index-definitions |
|
19
|
* description: Learn about search index definitions and their seed function |
|
20
|
* strategy: |
|
21
|
* type: string |
|
22
|
* description: How to rebuild the index. `swap` builds a new version of the index and swaps it in once it's ready, whereas `in_place` rewrites the version that's currently serving documents. This |
|
23
|
* property is ignored, and the rebuild always runs in place, when `filters` or `since` is set. |
|
24
|
* default: swap |
|
25
|
* enum: |
|
26
|
* - swap |
|
27
|
* - in_place |
|
28
|
* |
|
29
|
*/ |
|
30
|
|