Added refresh=wait_for to bulk update url. This should make update scripts less demanding on the server side, because the server only replies after refreshing (happens every second)

master
Erik de Vries 6 years ago
parent 413ad02a87
commit 015411feaf

@ -13,7 +13,7 @@
#################################################################################################
elastic_update <- function(x, es_super = 'secret') {
bulk <- paste0(x,'\n')
url <- paste0('https://super:',es_super,'@linux01.uis.no/es/_bulk?pretty')
url <- paste0('https://super:',es_super,'@linux01.uis.no/es/_bulk?pretty&refresh=wait_for')
res <- RETRY("POST", url = url
, body = bulk
, encode = "raw"

Loading…
Cancel
Save