30 lines
554 B
Plaintext
30 lines
554 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.close({
|
|
index: "index",
|
|
});
|
|
console.log(response);
|
|
|
|
const response1 = await client.indices.putSettings({
|
|
index: "index",
|
|
settings: {
|
|
index: {
|
|
similarity: {
|
|
default: {
|
|
type: "boolean",
|
|
},
|
|
},
|
|
},
|
|
},
|
|
});
|
|
console.log(response1);
|
|
|
|
const response2 = await client.indices.open({
|
|
index: "index",
|
|
});
|
|
console.log(response2);
|
|
----
|