Search...mulate(3pm)

πŸ“¦
version 8.12 Β· 3 versions
, in debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

πŸ’– Search::Elasticsearch::Client::8_0::Direct::Simulate πŸ’–

okay bestie, so this is the Search::Elasticsearch::Client::8_0::Direct::Simulate module β€” it's the piece of the Search::Elasticsearch client that runs your ingest pipelines against a set of stuff you hand it. yes, literally that. it's giving "simulate first, ship later" energy πŸ’…


✨ VERSION ✨

version 8.12 β€” that's the one, that's the era we're living in πŸŽ€

🌸 DESCRIPTION 🌸

the full, actual, no-notes documentation for the Simulate ingest API lives right here, bestie:

https://www.elastic.co/guide/en/elasticsearch/reference/master/simulate-ingest-api.html

go read it, it's iconic, iykyk πŸ¦‹


πŸ”₯ FOLLOW METHODS πŸ”₯

πŸ’« follow()

lowkey the whole point of this module. you call it and it does the thing:

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

like. look at that. 'index' => 'test', a 'body' with a 'docs' array, each doc carrying an '_id' and a '_source' with your 'foo' values ('bar' and 'baz' respectively, in case you were wondering πŸ‘€). and boom, you get $response back. slay. periodt. 🌈


πŸ‘‘ AUTHOR πŸ‘‘

Enrico Zimuel <enrico.zimuel@elastic.co> β€” the main character who made this happen 🫢


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

This is free software, licensed under:

The Apache License, Version 2.0, January 2004

ngl the legal bit is real and you should respect it πŸ’€

okay that's the whole page bestie!! this manual page came to you courtesy of perl v5.38.2 and it's dated 2024-02-04 β€” so like, a little vintage, but still absolutely ate βœ¨πŸ’– no cap, go simulate some ingest pipelines, you got this πŸ¦‹πŸŒΈ

πŸ“¦ where this page comes from