Code: Select all
public static void postData(String json, String index, String type) {
RestClient client = RestClient.builder(new HttpHost(testHostPreProd, 443, "https")).build();
HttpEntity entity = new NStringEntity(json, ContentType.APPLICATION_JSON);
Response response = client.performRequest("POST", "/" + index + "/" + type + "/_bulk",
Collections.emptyMap(), entity);
client.close();
}
Code: Select all
Exception in thread "main" org.elasticsearch.client.ResponseException: POST https:someURL/indexHere/typeHere/_bulk: HTTP/1.1 413 Request Entity Too Large
{"Message":"Request size exceeded 10485760 bytes"}
Irgendwelche Vorschläge zur Lösung dieses Problems?
Mobile version