Skip to content

SearchMvtResponse is not Json serializable #38

Closed
@iverase

Description

@iverase

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions