Skip to content
Snippets Groups Projects
Commit 1a204e1c authored by Shinsuke Sugaya's avatar Shinsuke Sugaya
Browse files

fix #2556 set index name

parent cb63a203
No related branches found
No related tags found
No related merge requests found
...@@ -336,7 +336,7 @@ public class AdminBackupAction extends FessAdminAction { ...@@ -336,7 +336,7 @@ public class AdminBackupAction extends FessAdminAction {
try (final BufferedWriter writer = new BufferedWriter(new OutputStreamWriter(out.stream(), Constants.CHARSET_UTF_8))) { try (final BufferedWriter writer = new BufferedWriter(new OutputStreamWriter(out.stream(), Constants.CHARSET_UTF_8))) {
SearchEngineUtil.scroll(index, hit -> { SearchEngineUtil.scroll(index, hit -> {
try { try {
writer.write("{\"index\":{\"_index\":\"" + index + "\",\"_id\":\"" writer.write("{\"index\":{\"_index\":\"" + hit.getIndex() + "\",\"_id\":\""
+ StringEscapeUtils.escapeJson(hit.getId()) + "\"}}\n"); + StringEscapeUtils.escapeJson(hit.getId()) + "\"}}\n");
writer.write(hit.getSourceAsString()); writer.write(hit.getSourceAsString());
writer.write("\n"); writer.write("\n");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment