Client configuration

edit

The 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
})