Fix doc type in FullClusterRestartIT
"_doc" is not accepted in 6.x version.
This commit is contained in:
parent
a9d16ee895
commit
c732d9923d
|
@ -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));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue