Added/updated snippets for docs (#2318)
This commit is contained in:
22
docs/doc_examples/07ba3eaa931f2cf110052e3544db51f8.asciidoc
Normal file
22
docs/doc_examples/07ba3eaa931f2cf110052e3544db51f8.asciidoc
Normal file
@ -0,0 +1,22 @@
|
||||
// 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);
|
||||
----
|
||||
Reference in New Issue
Block a user