Skip to content

Commit 645ce8e

Browse files
committed
fix(java): typos
1 parent f73ac0e commit 645ce8e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

templates/java/guides/search/deleteMultipleIndices.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public class deleteMultipleIndices {
2727

2828
// Now, delete replica indices
2929
if (!replicaIndices.isEmpty()) {
30-
List<MultipleBatchRequest> requests = primaryIndices.stream().map(index -> new MultipleBatchRequest().setAction(Action.DELETE).setIndexName(index.getName())).toList();
30+
List<MultipleBatchRequest> requests = replicaIndices.stream().map(index -> new MultipleBatchRequest().setAction(Action.DELETE).setIndexName(index.getName())).toList();
3131
{{#dynamicSnippet}}deleteMultipleIndicesReplica{{/dynamicSnippet}};
3232
System.out.println("Deleted replica indices.");
3333
}

templates/java/guides/search/saveObjectsModified.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public class saveObjectsModified {
1717
1818
try ({{> snippets/init}}) {
1919
20-
JsonNode content = new ObjectMapper().readTree(new File("actors.json"));
20+
JsonNode content = new ObjectMapper().readTree(new File("products.json"));
2121
List<Map<String, Object>> products =
2222
new ObjectMapper().readerForListOf(Map.class).readValue(content);
2323

0 commit comments

Comments
 (0)