Skip to content

Commit

Permalink
Fix index refresh issue
Browse files Browse the repository at this point in the history
  • Loading branch information
nishantb1 committed Oct 18, 2023
1 parent 0e55d38 commit f8e0031
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ internal object NotificationConfigIndex : ConfigOperations {
*/
override suspend fun createNotificationConfig(configDoc: NotificationConfigDoc, id: String?): String? {
createIndex()
val indexRequest = IndexRequest(INDEX_NAME)
val indexRequest = IndexRequest(INDEX_NAME).setRefreshPolicy(WriteRequest.RefreshPolicy.IMMEDIATE)
.source(configDoc.toXContent())
.create(true)
if (id != null) {
Expand Down

0 comments on commit f8e0031

Please sign in to comment.