Added/updated snippets for docs (#2318)
This commit is contained in:
35
docs/doc_examples/150b5fee5678bf8cdf0932da73eada80.asciidoc
Normal file
35
docs/doc_examples/150b5fee5678bf8cdf0932da73eada80.asciidoc
Normal file
@ -0,0 +1,35 @@
|
||||
// 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.nodes.stats({
|
||||
metric: "indices",
|
||||
index_metric: "fielddata",
|
||||
fields: "field1,field2",
|
||||
});
|
||||
console.log(response);
|
||||
|
||||
const response1 = await client.nodes.stats({
|
||||
metric: "indices",
|
||||
index_metric: "fielddata",
|
||||
level: "indices",
|
||||
fields: "field1,field2",
|
||||
});
|
||||
console.log(response1);
|
||||
|
||||
const response2 = await client.nodes.stats({
|
||||
metric: "indices",
|
||||
index_metric: "fielddata",
|
||||
level: "shards",
|
||||
fields: "field1,field2",
|
||||
});
|
||||
console.log(response2);
|
||||
|
||||
const response3 = await client.nodes.stats({
|
||||
metric: "indices",
|
||||
index_metric: "fielddata",
|
||||
fields: "field*",
|
||||
});
|
||||
console.log(response3);
|
||||
----
|
||||
Reference in New Issue
Block a user