Files
elasticsearch-js/docs/doc_examples/1027ab1ca767ac1428176ef4f84bfbcf.asciidoc
2020-06-26 09:24:14 +02:00

41 lines
617 B
Plaintext

// This file is autogenerated, DO NOT EDIT
// Use `node scripts/generate-docs-examples.js` to generate the docs examples
[source, js]
----
const response0 = await client.search({
index: 'twitter',
scroll: '1m',
body: {
slice: {
id: 0,
max: 2
},
query: {
match: {
title: 'elasticsearch'
}
}
}
})
console.log(response0)
const response1 = await client.search({
index: 'twitter',
scroll: '1m',
body: {
slice: {
id: 1,
max: 2
},
query: {
match: {
title: 'elasticsearch'
}
}
}
})
console.log(response1)
----