// 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: 'twitter', scroll: '1m', body: { slice: { field: 'date', id: 0, max: 10 }, query: { match: { title: 'elasticsearch' } } } }) console.log(response) ----