Search...mulate(3pm)
π 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 π«Ά
π 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
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
- debian trixie: libsearch-elasticsearch-perl 8.12-1 Β· Apache-2.0
- ubuntu noble: libsearch-elasticsearch-perl 8.12-1 Β· Apache-2.0
- ubuntu resolute: libsearch-elasticsearch-perl 8.12-1 Β· Apache-2.0
- ubuntu stonking: libsearch-elasticsearch-perl 8.12-1 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms