Added/updated snippets for docs (#2318)
This commit is contained in:
20
docs/doc_examples/a2bd0782aadfd0a902d7f590ee7f49fe.asciidoc
Normal file
20
docs/doc_examples/a2bd0782aadfd0a902d7f590ee7f49fe.asciidoc
Normal file
@ -0,0 +1,20 @@
|
||||
// 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: {
|
||||
content_embedding: {
|
||||
type: "sparse_vector",
|
||||
},
|
||||
content: {
|
||||
type: "text",
|
||||
},
|
||||
},
|
||||
},
|
||||
});
|
||||
console.log(response);
|
||||
----
|
||||
Reference in New Issue
Block a user