NOTE: You are looking at documentation for an older release. For the latest information, see the current release documentation.
Request specific optionsedit
If needed you can pass request specific options in a second object:
// promise API const result = await client.search({ index: 'my-index', body: { query: { match: { hello: 'world' } } } }, { ignore: [404], maxRetries: 3 }) // callback API client.search({ index: 'my-index', body: { query: { match: { hello: 'world' } } } }, { ignore: [404], maxRetries: 3 }, (err, { body }) => { if (err) console.log(err) })
The supported request specific options are:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|