Fix doc type in FullClusterRestartIT

"_doc" is not accepted in 6.x version.
This commit is contained in:
Nhat Nguyen 2019-12-15 21:37:50 -05:00
parent a9d16ee895
commit c732d9923d
1 changed files with 1 additions and 1 deletions

View File

@ -1269,7 +1269,7 @@ public class FullClusterRestartIT extends AbstractFullClusterRestartTestCase {
}
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));
}