$scroller = $es->scrolled_search($search_params);
$scroller = ElasticSearch::ScrolledSearch($es,$search_params);
@results = $scroller->next()
@results = $scroller->next($no_of_results);
Returns the next result, or the next $no_of_results or an empty list when
no more results are available.
An error is thrown if the scroll has already expired.
If as_json => 1 is specified, then next() will always return
a JSON array:
# if no results left: 
@docs = $scroller->drain_buffer;
Returns and removes all docs that are currently stored in the buffer.
$buffer_size = $scroller->refill_buffer
Pulls the next set of results from ElasticSearch (if any) and returns
the total number of docs stored in the internal buffer.
$total = $scroller->total
The total number of hits
$score = $scroller->max_score
The max_score returned from the first search request (if available).
$bool = $scroller->eof
Returns true if no more results are available. Note: if no results
match the search, then eof() could be false but the first call
to next() will return zero results.
$facets = $scroller->facets
The facets returned from the first search request (if any).
If as_json => 1 is specified, then facets() will always return
a JSON object.