Browse Source

removed geopipes-elasticsearch-backend dependency

pull/782/head
Stephen Hess 8 years ago
parent
commit
0bd983e2cd
  1. 1
      package.json
  2. 5
      src/backend.js

1
package.json

@ -46,7 +46,6 @@
"geojson": "^0.4.0", "geojson": "^0.4.0",
"geojson-extent": "^0.3.1", "geojson-extent": "^0.3.1",
"geolib": "^2.0.18", "geolib": "^2.0.18",
"geopipes-elasticsearch-backend": "^0.2.0",
"iso3166-1": "^0.2.3", "iso3166-1": "^0.2.3",
"joi": "^10.1.0", "joi": "^10.1.0",
"lodash": "^4.5.0", "lodash": "^4.5.0",

5
src/backend.js

@ -1,5 +1,6 @@
const config = require( 'pelias-config' ).generate().esclient; const config = require( 'pelias-config' ).generate().esclient;
const Backend = require('geopipes-elasticsearch-backend');
const client = require('elasticsearch').Client(config); const client = require('elasticsearch').Client(config);
module.exports = new Backend(client); module.exports = {
client: client
};

Loading…
Cancel
Save