Added/updated snippets for docs (#2318)
This commit is contained in:
15
docs/doc_examples/a3f56fa16c6cc67c2db31a4ba9ca11a7.asciidoc
Normal file
15
docs/doc_examples/a3f56fa16c6cc67c2db31a4ba9ca11a7.asciidoc
Normal file
@ -0,0 +1,15 @@
|
||||
// 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.enrich.putPolicy({
|
||||
name: "networks-policy",
|
||||
range: {
|
||||
indices: "networks",
|
||||
match_field: "range",
|
||||
enrich_fields: ["name", "department"],
|
||||
},
|
||||
});
|
||||
console.log(response);
|
||||
----
|
||||
Reference in New Issue
Block a user