`accept_data_loss` where does it go?

As per ES6 docs at Cluster reroute API | Elasticsearch Guide [8.11] | Elastic

this command requires the special field accept_data_loss to be explicitly set to true for it to work

May I get an example of this? Is this a URL parameter? Thank you.

It appears this works:

{"commands":[{"command":{"allocate_stale_primary":{
    "accept_data_loss":true,
    "index": index_name,
    "shard": shard_number,
    "node": node_name
}}}]}

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.