The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Search::Elasticsearch::Client::8_0::Direct::Simulate - Executes ingest pipelines against a set of provided

VERSION

version 8.12

DESCRIPTION

The full documentation for Simulate ingest API is available here: https://www.elastic.co/guide/en/elasticsearch/reference/master/simulate-ingest-api.html

FOLLOW METHODS

follow()

    my $response = $es->simulate->ingest(
        'index' => 'test',
        'body'  => {
            'docs' => [
                {
                    '_id' => '123',
                    '_source' => {
                        'foo': 'bar'
                    }
                },
                {
                    '_id' => '456',
                    '_source' => {
                        'foo': 'baz'
                    }
                },
            ]
        }
    );

AUTHOR

Enrico Zimuel <enrico.zimuel@elastic.co>

COPYRIGHT AND LICENSE

This software is Copyright (c) 2024 by Elasticsearch BV.

This is free software, licensed under:

  The Apache License, Version 2.0, January 2004