Files
elasticsearch-js/docs/doc_examples/2f72a63c73dd672ac2dc3997ad15dd41.asciidoc
2025-01-28 11:51:04 -06:00

24 lines
493 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: {
source_field: {
type: "text",
fields: {
infer_field: {
type: "semantic_text",
inference_id: ".elser-2-elasticsearch",
},
},
},
},
},
});
console.log(response);
----