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

17 lines
383 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({
query: {
sparse_vector: {
field: "ml.tokens",
inference_id: "the inference ID to produce the token weights",
query: "the query string",
},
},
});
console.log(response);
----