@Override
public ActionFuture<SearchResponse> execute(final Client client) {
final SearchRequest request = Requests.searchRequest().searchType(
SearchType.DFS_QUERY_AND_FETCH);
final SearchSourceBuilder sourceBuilder = new SearchSourceBuilder();
sourceBuilder.query(query);
sourceBuilder.size(maxResults);
request.source(sourceBuilder);
return client.search(request);
}