ElasticSearchX::Model::Scroll
version 2.0.1
my $iterator = $twitter->type('tweet')->scroll( '5m' ); while(my $tweet = $iterator->next) { # do something with $tweet } my $iterator = $twitter->type('tweet')->raw->scroll; $iterator->max_score; $iterator->total;
This string indicated how long ElasticSearch should keep the scrolled search around. This attribute is set by passing it to "scroll" in ElasticSearchX::Model::Document::Set.
The ElasticSearchX::Model::Document::Set this instance was build from.
Delegates to Elasticsearch::Scroll.
Returns the next result in the search. If you set the query to not inflate the results (e.g. using "raw" in ElasticSearchX::Model::Document::Set) it returns the raw HashRef, otherwise the result is inflated to the correct document class.
Moritz Onken
This software is Copyright (c) 2019 by Moritz Onken.
This is free software, licensed under:
The (three-clause) BSD License
To install ElasticSearchX::Model, copy and paste the appropriate command in to your terminal.
cpanm
cpanm ElasticSearchX::Model
CPAN shell
perl -MCPAN -e shell install ElasticSearchX::Model
For more information on module installation, please visit the detailed CPAN module installation guide.