Auto-generated code for 8.15 (#2440)

This commit is contained in:
Elastic Machine
2024-11-11 16:46:27 +01:00
committed by GitHub
parent 5d4bd654a3
commit ce6db97a71
7 changed files with 223 additions and 4 deletions

View File

@ -0,0 +1,23 @@
// 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-bit-vectors",
query: {
script_score: {
query: {
match_all: {},
},
script: {
source: "dotProduct(params.query_vector, 'my_dense_vector')",
params: {
query_vector: [8, 5, -15, 1, -7],
},
},
},
},
});
console.log(response);
----