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)}`) }