(cherry picked from commit f737290d10)
Co-authored-by: Josh Mock <joshua.mock@elastic.co>
23 lines
427 B
Plaintext
23 lines
427 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.reindex({
|
|
max_docs: 10,
|
|
source: {
|
|
index: "my-index-000001",
|
|
query: {
|
|
function_score: {
|
|
random_score: {},
|
|
min_score: 0.9,
|
|
},
|
|
},
|
|
},
|
|
dest: {
|
|
index: "my-new-index-000001",
|
|
},
|
|
});
|
|
console.log(response);
|
|
----
|