Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

Commit 81553f8

Browse files
author
Sachin Maheshwari
committed
refresh=true, so that new index is immediately available for seraching
1 parent 74bbede commit 81553f8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/common/es-helper.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ async function processCreate (resource, entity) {
295295
type: DOCUMENTS[resource].type,
296296
id: entity.id,
297297
body: entity,
298-
refresh: 'wait_for'
298+
refresh: 'true'
299299
})
300300
logger.info(`Insert in Elasticsearch resource ${resource} entity, , ${JSON.stringify(entity, null, 2)}`)
301301
}

0 commit comments

Comments
 (0)