Skip to content

Commit 5b98e79

Browse files
committed
revert earlier work causing elastic search bugs
1 parent b71c923 commit 5b98e79

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

framework/src/main/groovy/org/moqui/impl/context/ElasticFacadeImpl.groovy

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -357,8 +357,7 @@ class ElasticFacadeImpl implements ElasticFacade {
357357
jacksonMapper.writeValue(bodyWriter, entry)
358358
bodyWriter.append((char) '\n')
359359
}
360-
Map params = isOpenSearch ? [:] : [refresh:(refresh ? "true" : "wait_for")]
361-
RestClient restClient = makeRestClient(Method.POST, index, "_bulk", params)
360+
RestClient restClient = makeRestClient(Method.POST, index, "_bulk", [refresh:(refresh ? "true" : "wait_for")])
362361
.contentType("application/x-ndjson")
363362
restClient.timeout(600)
364363
restClient.text(bodyWriter.toString())

0 commit comments

Comments
 (0)