Files
elasticsearch-js/docs/doc_examples/5c8ac24dd56e85d8f3f6705ec3c6dc32.asciidoc
2024-07-29 17:10:05 -05:00

33 lines
635 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.create({
index: "circles",
mappings: {
properties: {
circle: {
type: "geo_shape",
},
},
},
});
console.log(response);
const response1 = await client.ingest.putPipeline({
id: "polygonize_circles",
description: "translate circle to polygon",
processors: [
{
circle: {
field: "circle",
error_distance: 28,
shape_type: "geo_shape",
},
},
],
});
console.log(response1);
----