Auto-generated API code (#2344)
Co-authored-by: Josh Mock <joshua.mock@elastic.co>
This commit is contained in:
18
docs/doc_examples/bfb0db2a72f22c9c2046119777efbb43.asciidoc
Normal file
18
docs/doc_examples/bfb0db2a72f22c9c2046119777efbb43.asciidoc
Normal file
@ -0,0 +1,18 @@
|
||||
// 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.search({
|
||||
index: "elser-embeddings",
|
||||
query: {
|
||||
sparse_vector: {
|
||||
field: "content_embedding",
|
||||
inference_id: "elser_embeddings",
|
||||
query: "How to avoid muscle soreness after running?",
|
||||
},
|
||||
},
|
||||
_source: ["id", "content"],
|
||||
});
|
||||
console.log(response);
|
||||
----
|
||||
Reference in New Issue
Block a user