Creating a clientedit

Start using Elasticsearch.js by creating an instance of the elasticsearch.Client class. The constructor accepts a config object/hash where you can define defaults values, or even entire classes, for the client to use. For a full list of config options check out the the section dedicated to configuration.

var elasticsearch = require('elasticsearch');
var client = new elasticsearch.Client({
  host: 'localhost:9200',
  log: 'trace'
});