(cherry picked from commit f737290d10)
Co-authored-by: Josh Mock <joshua.mock@elastic.co>
18 lines
361 B
Plaintext
18 lines
361 B
Plaintext
// This file is autogenerated, DO NOT EDIT
|
|
// Use `node scripts/generate-docs-examples.js` to generate the docs examples
|
|
|
|
[source, js]
|
|
----
|
|
const response = await client.indices.putSettings({
|
|
index: "logs-my_app-default",
|
|
settings: {
|
|
index: {
|
|
lifecycle: {
|
|
name: "new-lifecycle-policy",
|
|
},
|
|
},
|
|
},
|
|
});
|
|
console.log(response);
|
|
----
|