Files
elasticsearch-js/docs/doc_examples/96e88611f99e6834bd64b58dc8a282c1.asciidoc
2024-12-02 12:06:57 -06:00

19 lines
400 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: "my-index-000002",
mappings: {
properties: {
inference_field: {
type: "semantic_text",
inference_id: "my-openai-endpoint",
},
},
},
});
console.log(response);
----