From dc40fbbb199a68cde1b8a3760c750481fad646fc Mon Sep 17 00:00:00 2001 From: Your Name Date: Thu, 23 Jul 2020 13:04:29 +0200 Subject: [PATCH] elasticizer: update rbindlist implementation --- R/elasticizer.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/R/elasticizer.R b/R/elasticizer.R index a5e3b81..d27f69a 100644 --- a/R/elasticizer.R +++ b/R/elasticizer.R @@ -142,7 +142,7 @@ elasticizer <- function(query, src = T, index = 'maml', es_pwd = .rs.askForPassw } else { # Old merging code # out <- bind_rows(out, jsonlite:::flatten(json$hits$hits)) - out <- rbindlist(list(out, jsonlite:::flatten(json$hits$hits))) + out <- rbindlist(list(out, jsonlite:::flatten(json$hits$hits)),use.names = T, fill = T) } } }