}
}
}
final Integer from = response.getFrom() != -1 ? response.getFrom() : null;
final Integer count = response.getCount() != -1 ? response.getCount() : null;
return new SearchResponse(searchRequest, response.getTotalCount(), from, count, response.isTooManyResults(),
response.isCollapsed(), hits);
}