Hello,
I read a previous topic(#392) and the documentation concerning the javascript client.
First, I followed the documentation and created a basic client like this:
var elasticsearch = require('elasticsearch');
var client = new elasticsearch.Client({
host: 'localhost:9205'
});
Which gave me the elasticsearch.Client is not a constructor error
Then as suggested in topic(#392), I tried the following way:
function config() {
return {
log: "warning"
};
}
var es1 = new elasticsearch.Client(config());
var es2 = new elasticsearch.Client(config());
Which also gave the elasticsearch.Client is not a constructor error.
Currently, I am using elasticsearch 2.4.3. Am I missing something?