elasticsearch-perl icon indicating copy to clipboard operation
elasticsearch-perl copied to clipboard

There is no $bulk->add_actions() method

Open warewolf opened this issue 3 years ago • 0 comments

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.

warewolf avatar Sep 23 '22 00:09 warewolf