From 81553f838b99cadbae381040cbb14222f1bd1250 Mon Sep 17 00:00:00 2001 From: Sachin Maheshwari Date: Thu, 5 Aug 2021 13:55:16 +0530 Subject: [PATCH] refresh=true, so that new index is immediately available for seraching --- src/common/es-helper.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/es-helper.js b/src/common/es-helper.js index 85bc543..93c1cfa 100644 --- a/src/common/es-helper.js +++ b/src/common/es-helper.js @@ -295,7 +295,7 @@ async function processCreate (resource, entity) { type: DOCUMENTS[resource].type, id: entity.id, body: entity, - refresh: 'wait_for' + refresh: 'true' }) logger.info(`Insert in Elasticsearch resource ${resource} entity, , ${JSON.stringify(entity, null, 2)}`) }