Browse Source

Pass esclient config to elasticsearch module

This fixes a regression in #423 that breaks our configuration in dev and
production.
pull/448/head
Julian Simioni 9 years ago
parent
commit
6f7b2ac68a
  1. 4
      src/backend.js

4
src/backend.js

@ -1,6 +1,6 @@
var config = require( 'pelias-config' ).generate().esclient;
var Backend = require('geopipes-elasticsearch-backend'),
client = require('elasticsearch').Client(),
client = require('elasticsearch').Client(config),
backends = {};
function getBackend( index, type ){

Loading…
Cancel
Save