NOTE: You are looking at documentation for an older release. 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 })