elasticsearch-java icon indicating copy to clipboard operation
elasticsearch-java copied to clipboard

Search Request should support parameterized type

Open Dyqer opened this issue 4 years ago • 0 comments

With Jackson we can deserialize json string with typeReference like this

objectMapper.readValue(str, new TypeReference(Map<String, Object>)() {});

But now we only support .class

transport.search(searchRequest, Map.class);

Dyqer avatar Jan 21 '22 03:01 Dyqer