From 392c8110d04b582c6b2e918cdae91ac9d0e8c71d Mon Sep 17 00:00:00 2001 From: Bertrand Marron Date: Mon, 11 Feb 2019 20:32:50 +0100 Subject: [PATCH] Pin elastic searcg api version --- lib/utils/elastic.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/utils/elastic.js b/lib/utils/elastic.js index 1e64f4d..8b17296 100644 --- a/lib/utils/elastic.js +++ b/lib/utils/elastic.js @@ -81,7 +81,8 @@ const indices = { class Elastic { constructor() { this.client = new elasticsearch.Client({ - host: process.env.ELASTIC_HOST || 'localhost:9200' + host: process.env.ELASTIC_HOST || 'localhost:9200', + apiVersion: '6.5' }) }