-
-
26 Jun 2020 11:22:31 UTC
- Distribution: Search-Elasticsearch-Client-1_0
- Module version: 6.81
- Source (raw)
- Browse (raw)
- Changes
- Homepage
- How to Contribute
- Repository
- Issues (20)
- Testers (141 / 0 / 0)
- Kwalitee
Bus factor: 1- % Coverage
- License: apache_2_0
- Activity
24 month- Tools
- Download (49.92KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
and 1 contributors-
Enrico Zimuel
- Dependencies
- Devel::GlobalDestruction
- Moo
- Moo::Role
- Search::Elasticsearch
- Search::Elasticsearch::Role::API
- Search::Elasticsearch::Role::Client::Direct
- Search::Elasticsearch::Role::Is_Sync
- Search::Elasticsearch::Util
- Try::Tiny
- namespace::clean
- strict
- warnings
- Reverse dependencies
- CPAN Testers List
- Dependency graph
NAME
Search::Elasticsearch::Client::1_0::Role::API - This class contains the spec for the Elasticsearch APIs
VERSION
version 6.81
DESCRIPTION
All of the Elasticsearch APIs are defined in this role. The example given below is the definition for the "index()" in Search::Elasticsearch::Client::1_0::Direct method:
'index' => { body => { required => 1 }, doc => "docs-index_", method => "POST", parts => { id => {}, index => { required => 1 }, type => { required => 1 } }, paths => [ [ { id => 2, index => 0, type => 1 }, "{index}", "{type}", "{id}" ], [ { index => 0, type => 1 }, "{index}", "{type}" ], ], qs => { filter_path => "list", op_type => "enum", parent => "string", pipeline => "string", refresh => "enum", routing => "string", timeout => "time", timestamp => "time", ttl => "time", version => "number", version_type => "enum", wait_for_active_shards => "string", }, },
These definitions can be used by different Search::Elasticsearch::Role::Client implementations to provide distinct user interfaces.
METHODS
api()
$defn = $api->api($name);
The only method in this class is the
api()
method which takes the name of the action and returns its definition. Actions in theindices
orcluster
namespace use the namespace as a prefix, eg:$defn = $e->api('indices.create'); $defn = $e->api('cluster.node_stats');
SEE ALSO
AUTHOR
Enrico Zimuel <enrico.zimuel@elastic.co>
COPYRIGHT AND LICENSE
This software is Copyright (c) 2020 by Elasticsearch BV.
This is free software, licensed under:
The Apache License, Version 2.0, January 2004
Module Install Instructions
To install Search::Elasticsearch::Client::1_0, copy and paste the appropriate command in to your terminal.
cpanm Search::Elasticsearch::Client::1_0
perl -MCPAN -e shell install Search::Elasticsearch::Client::1_0
For more information on module installation, please visit the detailed CPAN module installation guide.