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