Search::Elasticsearch::Plugin::XPack::2_0::Graph - Plugin providing Graph API for Search::Elasticsearch 2.x
version 6.00
use Search::Elasticsearch(); my $es = Search::Elasticsearch->new( nodes => \@nodes, plugins => ['XPack'] ); my $response = $es->graph->explore(...);
This class extends the Search::Elasticsearch client with a graph namespace, to support the API for the Graph plugin for Elasticsearch. In other words, it can be used as follows:
graph
The full documentation for the Graph plugin is available here: https://www.elastic.co/guide/en/graph/current/index.html
explore()
$response = $es->graph->explore( index => $index | \@indices, # optional type => $type | \@types, # optional body => {...} )
The explore() method allows you to discover vertices and connections which relate to your query.
See the explore docs for more information.
Clinton Gormley <drtech@cpan.org>
This software is Copyright (c) 2017 by Elasticsearch BV.
This is free software, licensed under:
The Apache License, Version 2.0, January 2004
To install Search::Elasticsearch::Plugin::XPack, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Search::Elasticsearch::Plugin::XPack
CPAN shell
perl -MCPAN -e shell install Search::Elasticsearch::Plugin::XPack
For more information on module installation, please visit the detailed CPAN module installation guide.