Skip to content

Commit

Permalink
Fix index refresh issue
Browse files Browse the repository at this point in the history
Signed-off-by: Nishant Bhagat <[email protected]>
  • Loading branch information
nishantb1 committed Oct 18, 2023
1 parent ce4e398 commit 5a73915
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ internal object NotificationConfigIndex : ConfigOperations {
*/
override suspend fun updateNotificationConfig(id: String, notificationConfigDoc: NotificationConfigDoc): Boolean {
createIndex()
val indexRequest = IndexRequest(INDEX_NAME)
val indexRequest = IndexRequest(INDEX_NAME).setRefreshPolicy(WriteRequest.RefreshPolicy.IMMEDIATE)
.source(notificationConfigDoc.toXContent())
.create(false)
.id(id)
Expand Down

0 comments on commit 5a73915

Please sign in to comment.