Skip to content

Commit c732d99

Browse files
committed
Fix doc type in FullClusterRestartIT
"_doc" is not accepted in 6.x version.
1 parent a9d16ee commit c732d99

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

qa/full-cluster-restart/src/test/java/org/elasticsearch/upgrades/FullClusterRestartIT.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -1269,7 +1269,7 @@ private void indexRandomDocuments(
12691269
}
12701270

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

0 commit comments

Comments
 (0)