For example:
When is each API best for what?
Reindex is the concept of copying existing data from a source index to a destination index which can be inside the same or a different cluster. Elasticsearch has a dedicated endpoint _reindex for this purpose. A reindexing is mostly required for updating mapping or settings.
REINDEX provides a way to reduce the space consumption of the index by writing a new version of the index without the dead pages. See Section 23.2 for more information. You have altered a storage parameter (such as fillfactor) for an index, and wish to ensure that the change has taken full effect.
You have the answer inside: "Reindex does not copy the settings from the source index. Mappings, shard counts, replicas, and so on must be configured ahead of time."
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With