Closed
Description
Trying a SearchMvtRequest
gives an error as we are trying to serialise the response to Json:
RestClient restClient = RestClient.builder(new HttpHost("localhost", 9200)).build());
Transport transport = new RestClientTransport(restClient, new JacksonJsonpMapper());
ElasticsearchClient client = new ElasticsearchClient(transport);
SearchMvtResponse response = client.searchMvt(
(builder) -> builder.zoom(0).x(0).y(0).addIndex("points").field("location")
);
Gives the following error:
Caused by: com.fasterxml.jackson.core.JsonParseException: Illegal character ((CTRL-CHAR, code 26)): only regular white space (\r, \n, \t) is allowed between tokens