setSorting(query, esSearch);
setPagination(options, esSearch);
setFields(options, esSearch);
FilterBuilder fb = this.getFilter(query, options);
QueryBuilder qb = this.getQuery(query, options);
<BUG>esSearch.setQuery(QueryBuilders.filteredQuery(qb, fb));
SearchResponse esResult = esSearch.get();
profile.stop("query: " + esSearch + "\nresult:" + esResult);
return new Result<Rule>(this, esResult);</BUG>
}

setSorting(query, esSearch);
setPagination(options, esSearch);
setFields(options, esSearch);
FilterBuilder fb = this.getFilter(query, options);
QueryBuilder qb = this.getQuery(query, options);
esSearch.setQuery(QueryBuilders.filteredQuery(qb, fb));
basicProfile.stop(esSearch.toString());
SearchResponse esResult = esSearch.get();
fullProfile.stop(esResult.toString());
return new Result<Rule>(this, esResult);
}
