(cherry picked from commit f737290d10)
Co-authored-by: Josh Mock <joshua.mock@elastic.co>
19 lines
399 B
Plaintext
19 lines
399 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-000001",
|
|
mappings: {
|
|
properties: {
|
|
inference_field: {
|
|
type: "semantic_text",
|
|
inference_id: "my-elser-endpoint",
|
|
},
|
|
},
|
|
},
|
|
});
|
|
console.log(response);
|
|
----
|