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.
Client configuration
editClient configuration
editThe client is designed to be easily configured as you see fit for your needs, following you can see all the possible basic options that you can use to configure it.
const { Client } = require('@elastic/elasticsearch') const client = new Client({ node: 'http://localhost:9200', maxRetries: 5, requestTimeout: 60000, sniffOnStart: true })