elasticsearch-perl
elasticsearch-perl copied to clipboard
There is no $bulk->add_actions() method
I'm not at the right PC right now with the right SSH key to make a proper PR, sorry!
https://github.com/elastic/elasticsearch-perl/blob/master/lib/Search/Elasticsearch/Client/7_0/Bulk.pm#L303
$bulk->add_action($_) for (@actions);
# or
foreach my $action (@actions) {
$bulk->add_action($action);
}
might be a better piece of example code.