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

18 lines
370 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: "byte-image-index",
knn: {
field: "byte-image-vector",
query_vector: [-5, 9],
k: 10,
num_candidates: 100,
},
fields: ["title"],
});
console.log(response);
----