.setQuery(QueryBuilders.termsQuery(RuleNormalizer.RuleField.ID.field(), ids));
SearchResponse scrollResp = request.get();
List<Rule> rules = newArrayList();
while (true) {
SearchScrollRequestBuilder scrollRequest = getClient()
.prepareSearchScroll(scrollResp.getScrollId())
.setScroll(TimeValue.timeValueSeconds(3L));
scrollResp = scrollRequest.get();
for (SearchHit hit : scrollResp.getHits()) {
rules.add(toDoc(hit.getSource()));
}
// Break condition: No hits are returned