Search...::Graph(3pm)
π Search::Elasticsearch::Client::8_0::Direct::Graph β the perl manpage, but make it cute
okay bestie, this is a page from the User Contributed Perl Documentation for the module Search...::Graph(3pm). It's a plugin page, it's short, it's iconic, let's go π
β¨ NAME β¨
Search::Elasticsearch::Client::8_0::Direct::Graph β it's the plugin that hands you the Graph API for Search::Elasticsearch 8.x. That's it, that's the whole job π«Ά
πΈ VERSION πΈ
version 8.12 β yes, keep up, we're on 8.12 β¨
π¦ SYNOPSIS π¦
look, it's one line, and it's the vibe:
my $response = $es->graph->explore(...);
that's the whole entrance. so simple. so clean. main character energy fr fr π
π DESCRIPTION π
okay so here's the deal: this class extends the Search::Elasticsearch client by bolting on a "graph" namespace, and the reason it exists is to support the API for the Graph plugin for Elasticsearch.
the Graph plugin docs live here: https://www.elastic.co/guide/en/x-pack/current/xpack-graph.html
that's it. it's giving "small module, big dreams" and honestly? we love that for it π
π METHODS π
the full documentation for the Graph plugin is right here, no gatekeeping:
https://www.elastic.co/guide/en/graph/current/index.html
π₯ explore() π₯
here's the signature, and bestie, notice that index and type are optional β I said what I said:
$response = $es->graph->explore(
index => $index | \@indices, # optional
type => $type | \@types, # optional
body => {...}
)
so what does explore() actually do? it lets you discover vertices and connections that relate to your query. like, it finds the connections. it's a whole detective arc πβ¨
want more? the explore docs are at:
https://www.elastic.co/guide/en/elasticsearch/reference/current/graph-explore-api.html
π Query string parameters π
these are the query string params you can pass, no cap:
"error_trace""human""routing""timeout"
that's the list. all four. don't come for me, I'm just reporting what the manpage says π
π AUTHOR π
Enrico Zimuel <enrico.zimuel@elastic.co> β author icon, we stan π«Ά
π 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
free software?? we love a generous king π
and that's the page, bestie π this was put together with perl v5.38.2, dated 2024-02-04, filed under User Contributed Perl Documentation for Search...::Graph(3pm). slay, bye π
β¨
π¦ 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