Added new docs examples (#1101)
* Added new docs examples * Updated enabled files list
This commit is contained in:
committed by
GitHub
parent
7b7c9130f3
commit
508aa362e6
20
docs/doc_examples/cb01106bf524df5e0501d4c655c1aa7b.asciidoc
Normal file
20
docs/doc_examples/cb01106bf524df5e0501d4c655c1aa7b.asciidoc
Normal file
@ -0,0 +1,20 @@
|
||||
// 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({
|
||||
slices: '5',
|
||||
refresh: true,
|
||||
body: {
|
||||
source: {
|
||||
index: 'twitter'
|
||||
},
|
||||
dest: {
|
||||
index: 'new_twitter'
|
||||
}
|
||||
}
|
||||
})
|
||||
console.log(response)
|
||||
----
|
||||
|
||||
Reference in New Issue
Block a user