Merge branch '2.0' of github.com:elasticsearch/elasticsearch-js

This commit is contained in:
Spencer Alger
2014-03-27 13:41:22 -07:00
6 changed files with 18 additions and 6 deletions

View File

@ -32,6 +32,13 @@ var _ = require('./utils');
function Client(config) {
config = config || {};
if (config.__reused) {
throw new Error('Do not reuse objects to configure the elasticsearch Client class: ' +
'https://github.com/elasticsearch/elasticsearch-js/issues/33');
} else {
config.__reused = true;
}
function EsApiClient() {
// our client will log minimally by default
if (!config.hasOwnProperty('log')) {