Files
elasticsearch-js/docs/doc_examples/5ddc26da6e163fda54f52d33b5157051.asciidoc
2024-07-29 17:10:05 -05:00

18 lines
376 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.search({
index: "my-index",
query: {
sparse_vector: {
field: "my_tokens",
inference_id: "my-elser-endpoint",
query: "the query string",
},
},
});
console.log(response);
----