new StringEntity(json, ContentType.APPLICATION_JSON));
SearchResponse searchResponse = JsonUtil.deserialize(restResponse, SearchResponse.class);
logger.trace("search response: {}", searchResponse);
return searchResponse;
}
<BUG>protected String setElasticsearchBehavior() throws IOException {

String version = findVersion();
if (new VersionComparator().compare(version, "5") >= 0) {
</BUG>
FIELDS = "stored_fields";

new StringEntity(json, ContentType.APPLICATION_JSON));
SearchResponse searchResponse = JsonUtil.deserialize(restResponse, SearchResponse.class);
logger.trace("search response: {}", searchResponse);
return searchResponse;
}
private void setElasticsearchBehavior() throws IOException {
if (VERSION == null) {
VERSION = findVersion();
if (new VersionComparator().compare(VERSION, "5") >= 0) {
