Added/updated snippets for docs (#2318)
This commit is contained in:
21
docs/doc_examples/a6b2815d54df34b6b8d00226e9a1af0c.asciidoc
Normal file
21
docs/doc_examples/a6b2815d54df34b6b8d00226e9a1af0c.asciidoc
Normal file
@ -0,0 +1,21 @@
|
||||
// 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",
|
||||
mappings: {
|
||||
properties: {
|
||||
"my_embeddings.predicted_value": {
|
||||
type: "dense_vector",
|
||||
dims: 384,
|
||||
},
|
||||
my_text_field: {
|
||||
type: "text",
|
||||
},
|
||||
},
|
||||
},
|
||||
});
|
||||
console.log(response);
|
||||
----
|
||||
Reference in New Issue
Block a user