IMPORTANT: elasticsearch.js has been replaced by the new Elasticsearch JavaScript client. We strongly advise you to migrate to the new client. To learn more, see the migration guide.
Configuration
edit
IMPORTANT: This documentation is no longer updated. Refer to Elastic's version policy and the latest documentation.
Configuration
editThe Client
constructor accepts a single object as its argument. In the Config options section all of the available options/keys are listed.
var elasticsearch = require('elasticsearch'); var client = new elasticsearch.Client({ ... config options ... });
Due to the complex nature of the configuration, the config object you pass in will be modified and can only be used to create one Client
instance. Sorry for the inconvenience. Related Github issue: https://github.com/elasticsearch/elasticsearch-js/issues/33
Was this helpful?
Thank you for your feedback.