@_) {
my @json = $self->_encode_action( splice( @_, 0, 2 ) );
push @$buffer, @json;
my $size = $self->_buffer_size;
$size += length($_) + 1 for @json;
$self->
s a queue, buffering up actions
until it reaches a maximum count of actions, or a maximum size of JSON request
body, at which point it issues a C<bulk()> request.
Once you have finished adding action
by setting C<max_count> to C<0>. Defaults to
C<1,000>.
=item * C<max_size>
The maximum size of JSON request body to allow before triggering a
L</flush()>. This can be disabled by setting C<max_siz
;
The C<post()> method adds or updates the license for the cluster. The C<body>
can be passed as JSON or as a string.
See the L<license.put docs|https://www.elastic.co/guide/en/x-pack/current/instal
pt only a JSON C<true> or C<false>, or the string equivalents C<"true"> or C<"false">.
In the Perl client, you can use the following values:
=over
=item * True: C<true>, C<\1>, or a L<JSON::PP::Boo
lse>, C<\0>, or a L<JSON::PP::Boolean> object.
=back
=head2 Filter path parameter
Any API which returns a JSON body accepts a C<filter_path> parameter
which will filter the JSON down to only the sp
ional
);
Renders the template, filling in the passed-in parameters and returns the resulting JSON, eg:
$results = $e->render_search_template(
body => {
source => {