WARNING: Version 5.x has passed its EOL date.
This documentation is no longer being maintained and may be removed. If you are running this version, we strongly advise you to upgrade. For the latest information, see the current release documentation.
Request specific options
editRequest specific options
editIf 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:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|