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

18 lines
387 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: "ml.tokens",
inference_id: "my-elser-model",
query: "How is the weather in Jamaica?",
},
},
});
console.log(response);
----