Auto-generated code for 8.15 (#2472)

This commit is contained in:
Elastic Machine
2024-11-18 18:24:26 +01:00
committed by GitHub
parent 05e140ca16
commit ec61d1afb1
13 changed files with 145 additions and 42 deletions

View File

@ -0,0 +1,34 @@
// 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.ingest.putPipeline({
id: "geoip",
description: "Add ip geolocation info",
processors: [
{
geoip: {
field: "ip",
},
},
],
});
console.log(response);
const response1 = await client.index({
index: "my-index-000001",
id: "my_id",
pipeline: "geoip",
document: {
ip: "89.160.20.128",
},
});
console.log(response1);
const response2 = await client.get({
index: "my-index-000001",
id: "my_id",
});
console.log(response2);
----