From ab427229f484d5c28b9f59e3074da515acfc7fc0 Mon Sep 17 00:00:00 2001 From: Julian Simioni Date: Fri, 5 Feb 2016 19:55:28 -0500 Subject: [PATCH] Use the official elasticsearch This replaces the pelias-esclient library which has not been maintained for a long time. --- package.json | 2 +- src/backend.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 5180e5a0..d44b0576 100644 --- a/package.json +++ b/package.json @@ -39,6 +39,7 @@ "async": "^1.5.2", "check-types": "^6.0.0", "cluster2": "git://github.com/missinglink/cluster2.git#node_zero_twelve", + "elasticsearch": "^10.1.3", "express": "^4.8.8", "express-http-proxy": "^0.6.0", "extend": "3.0.0", @@ -51,7 +52,6 @@ "markdown": "0.5.0", "morgan": "1.7.0", "pelias-config": "^1.0.1", - "pelias-esclient": "1.0.0", "pelias-logger": "^0.0.8", "pelias-query": "^6.0.0", "pelias-suggester-pipeline": "2.0.4", diff --git a/src/backend.js b/src/backend.js index d0388966..3d2bc993 100644 --- a/src/backend.js +++ b/src/backend.js @@ -1,6 +1,6 @@ var Backend = require('geopipes-elasticsearch-backend'), - client = require('pelias-esclient')(), + client = require('elasticsearch').Client(), backends = {}; function getBackend( index, type ){ @@ -11,4 +11,4 @@ function getBackend( index, type ){ return backends[key]; } -module.exports = getBackend; \ No newline at end of file +module.exports = getBackend;