elastic_update: removed wait_for from url

master
Erik de Vries 5 years ago
parent 8051a81b66
commit 9ca952ca89

@ -15,7 +15,7 @@
elastic_update <- function(x, es_super = 'secret', localhost = T) { elastic_update <- function(x, es_super = 'secret', localhost = T) {
bulk <- paste0(paste0(x, collapse = '\n'),'\n') bulk <- paste0(paste0(x, collapse = '\n'),'\n')
if (localhost == F) { if (localhost == F) {
url <- paste0('https://super:',es_super,'@linux01.uis.no/es/_bulk?pretty&refresh=wait_for') url <- paste0('https://super:',es_super,'@linux01.uis.no/es/_bulk?pretty')
} }
if (localhost == T) { if (localhost == T) {
url <- 'http://localhost:9200/_bulk?pretty' url <- 'http://localhost:9200/_bulk?pretty'

Loading…
Cancel
Save