Files
elasticsearch-js/docs/doc_examples/93c77c65f1e11382f8043d0300e87b89.asciidoc
2024-12-10 17:46:19 +00:00

23 lines
480 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: "test-index",
mappings: {
properties: {
infer_field: {
type: "semantic_text",
inference_id: ".elser-2-elasticsearch",
},
source_field: {
type: "text",
copy_to: "infer_field",
},
},
},
});
console.log(response);
----