File: reindex.md

package info (click to toggle)
elasticsearch-curator 8.0.21-1
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 2,716 kB
  • sloc: python: 17,838; makefile: 159; sh: 156
file content (65 lines) | stat: -rw-r--r-- 2,377 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
---
mapped_pages:
  - https://www.elastic.co/guide/en/elasticsearch/client/curator/current/reindex.html
---

# Reindex [reindex]

```yaml
actions:
  1:
    description: "Reindex index1 into index2"
    action: reindex
    options:
      wait_interval: 9
      max_wait: -1
      request_body:
        source:
          index: index1
        dest:
          index: index2
    filters:
    - filtertype: none
```

There are many options for the reindex option.  The best place to start is in the [request_body documentation](/reference/option_request_body.md) to see how to configure this action.  All other options are as follows.

## Required settings [_required_settings_7]

* [request_body](/reference/option_request_body.md)


## Optional settings [_optional_settings_12]

* [refresh](/reference/option_refresh.md)
* [remote_certificate](/reference/option_remote_certificate.md)
* [remote_client_cert](/reference/option_remote_client_cert.md)
* [remote_client_key](/reference/option_remote_client_key.md)
* [remote_filters](/reference/option_remote_filters.md)
* [remote_url_prefix](/reference/option_remote_url_prefix.md)
* [request_body](/reference/option_request_body.md)
* [requests_per_second](/reference/option_requests_per_second.md)
* [slices](/reference/option_slices.md)
* [timeout](/reference/option_timeout.md)
* [wait_for_active_shards](/reference/option_wait_for_active_shards.md)
* [wait_for_completion](/reference/option_wfc.md)
* [max_wait](/reference/option_max_wait.md)
* [wait_interval](/reference/option_wait_interval.md)
* [ignore_empty_list](/reference/option_ignore_empty.md)
* [timeout_override](/reference/option_timeout_override.md)
* [continue_if_exception](/reference/option_continue.md)
* [disable_action](/reference/option_disable.md)
* [migration_prefix](/reference/option_migration_prefix.md)
* [migration_suffix](/reference/option_migration_suffix.md)

::::{tip}
See an example of this action in an [actionfile](/reference/actionfile.md) [here](/reference/ex_reindex.md).
::::



## Compatibility [_compatibility]

Generally speaking, the Curator should be able to perform a remote reindex from any version of Elasticsearch, 1.4 and newer. Strictly speaking, the Reindex API in Elasticsearch *is* able to reindex from older clusters, but Curator cannot be used to facilitate this due to Curator’s dependency on changes released in 1.4.