Search...::Graph(3pm)
π NAME π
Search...::Graph β aka Search::Elasticsearch::Client::7_0::Direct::Graph β bestie, it's the plugin that hands you the Graph API for Search::Elasticsearch 7.x. That's the whole job. She does one thing and she eats. π
β¨ VERSION β¨
version 7.715 β yes, we're on 7.715, no she's not outdated, stop asking. π
πΈ SYNOPSIS πΈ
Okay so the entire vibe is literally one line:
my $response = $es->graph->explore(...);
That's it. That's the whole flex. Go off. π¦
π DESCRIPTION π
So what's happening here is that this class extends the Search::Elasticsearch client and bolts a whole "graph" namespace onto it, so you can talk to the API for the Graph plugin over in Elasticsearch.
Here's the plugin's whole lore if you wanna read it:
<https://www.elastic.co/guide/en/x-pack/current/xpack-graph.html>
π₯ METHODS π₯
The full documentation for the Graph plugin lives right here, and it's giving very thorough, very slay:
<https://www.elastic.co/guide/en/graph/current/index.html>
π§ "explore()" π§
The signature, untouched, exactly as the ancestors intended:
$response = $es->graph->explore(
index => $index | \@indices, # optional
type => $type | \@types, # optional
body => {...}
)
So "explore()" is the main character here β it lets you discover vertices and connections that relate to your query. Like, it goes and finds the little guys that are connected to the thing you asked about. No cap. π
Wanna go deeper? The explore docs are right here:
<https://www.elastic.co/guide/en/elasticsearch/reference/current/graph-explore-api.html>
Query string parameters: π
"error_trace""human""routing""timeout"
Lowkey important: those are the query string parameters, exactly those four, don't go making up your own bestie. π
π«Ά AUTHOR π«Ά
Enrico Zimuel <enrico.zimuel@elastic.co> β iconic, we stan. π
π COPYRIGHT AND LICENSE π
This software is Copyright (c) 2021 by Elasticsearch BV.
This is free software, licensed under:
The Apache License, Version 2.0, January 2004
perl v5.32.1 Β· 2021-10-23 Β· Search...::Graph(3pm) β and that's the page, bestie, from the User Contributed Perl Documentation squad. Read it, love it, use it responsibly. Mwah. πβ¨ππ¦
π¦ where this page comes from
- ubuntu jammy: libsearch-elasticsearch-perl 7.715-1 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms