on-internet
← Community

ElasticSearch error ""Message":"Request size exceeded 10485760 bytes"

Stack Overflow ·

While uploading a 50 mb size huge JSON string in ElasticSearch using this method - 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.<String, String>emptyMap(), entity); client.close(); } The error is Exception in thread "main" org.elasticsearch.client.ResponseException: POST https:someURL/indexHere/typeHere/_bu

Comments

Sign in or sign up to comment and upvote.

No comments yet.