I used the example below to turn the json response into a SearchResponse and it worked fine.
I made a change in my json file by adding the "suggest" but now I can't parse it correctly.
Does anyone have any tips?
Map<String, ContextParser<Object, ? extends Suggest>> mapSuggest = new HashMap<>(); entries.addAll(mapSuggest.entrySet().stream() .map(entry -> new NamedXContentRegistry.Entry(Suggest.class, new ParseField(entry.getKey()), entry.getValue())) .collect(Collectors.toList()));
but it does not work...