Skip to content

Commit

Permalink
Fix doc type in FullClusterRestartIT
Browse files Browse the repository at this point in the history
"_doc" is not accepted in 6.x version.
  • Loading branch information
dnhatn committed Dec 16, 2019
1 parent a9d16ee commit c732d99
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1269,7 +1269,7 @@ private void indexRandomDocuments(
}

private void indexDocument(String id) throws IOException {
final Request indexRequest = new Request("POST", "/" + index + "/" + "_doc/" + id);
final Request indexRequest = new Request("POST", "/" + index + "/" + type + "/" + id);
indexRequest.setJsonEntity(Strings.toString(JsonXContent.contentBuilder().startObject().field("f", "v").endObject()));
assertOK(client().performRequest(indexRequest));
}
Expand Down

0 comments on commit c732d99

Please sign in to comment.