Playing with iterators and results from elastic search