From 8a4d1c8eb40d52921565f35d1dfaf3b927833c51 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolo=CC=80=20Pastore?= Date: Mon, 5 Jan 2015 18:43:41 +0100 Subject: [PATCH] Fixed last dump docs --- elasticmover.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/elasticmover.php b/elasticmover.php index 8649679..72630f4 100644 --- a/elasticmover.php +++ b/elasticmover.php @@ -197,6 +197,13 @@ function es2file($es_url, $output, $data_type, $verbose_mode = 1, $chunk_size = $dump = ""; } } else { + if ($dump != "") { + appendDataToFile($dump, $output); + if ($verbose_mode > 1) + echo "[" . date('c') . "] Save docs to dump file: saved $chuck_counter docs\n"; + $chuck_counter = 0; + $dump = ""; + } return; } }