int count = 0;
String scrollId = null;
while (scrolling) {
final SearchResponse scrollResponse;
if (scrollId == null) {
<BUG>scrollResponse = ActionGetUtil.actionGet(client.prepareSearch(index).setTypes(type).setScroll(scrollForDelete).setSize(sizeForDelete)
</BUG>
.setQuery(queryBuilder).execute());
<BUG>} else {
scrollResponse = ActionGetUtil.actionGet(client.prepareSearchScroll(scrollId).setScroll(scrollForDelete).execute());
</BUG>
}

int count = 0;
String scrollId = null;
while (scrolling) {
final SearchResponse scrollResponse;
if (scrollId == null) {
scrollResponse = get(c -> c.prepareSearch(index).setTypes(type).setScroll(scrollForDelete).setSize(sizeForDelete)
.setQuery(queryBuilder).execute());
} else {
final String sid = scrollId;
scrollResponse = get(c -> c.prepareSearchScroll(sid).setScroll(scrollForDelete).execute());
}
