App::Prove::Elasticsearch::Utils - common functions used by multiple modules in the distribution.
version 0.001
Read the configuration & any CLI args (key=value,key=value...), and set their values in ENV.
Require the needed indexer implied by the configuration passed. Set the ENV var CLIENT_INDEXER for use by parser, etc.
Require the needed searcher implied by the configuration passed. Set the ENV var CLIENT_AUTODISCOVER for use by parser, etc.
Will die unless you have autodiscover= set in your configuration, as there is no default searcher.
Require the needed searcher implied by the configuration passed. Set the ENV var CLIENT_BLAMER for use by parser, etc.
Require the needed planner implied by the configuration passed. Set the ENV var CLIENT_PLANNER for use by parser, etc.
Require the needed platformer implied by the configuration passed. Set the ENV var CLIENT_PLATFORMER for use by parser, etc.
Require the needed queue module implied by the configuration passed Sets the ENV var CLIENT_QUEUE for use by testd & testplan, etc
Require the needed versioner module implied by the configuration passed Sets the ENV var CLIENT_VERSIONER for use by parser, etc
Require the needed runner module implied by the configuration passed Sets the ENV var CLIENT_RUNNER for use by testd, etc
Require the needed runner module provided. Sets the ENV var CLIENT_PROVISIONERS for use by testd, etc
These are used directly in some indexer & planner subs. Thankfully, those are required dynamically, so reliance on these shouldn't break plugin compatibility.
Ask ES for the last index it has on hand, so we can then add some new records.
Arguments are ES handle and index name.
Do an elasticsearch paginated query.
Arguments are ES handle, max query results and the query to paginate (HASH).
George S. Baugh <teodesian@cpan.org>
The development version is on github at http://https://github.com/teodesian/App-Prove-Elasticsearch and may be cloned from git://https://github.com/teodesian/App-Prove-Elasticsearch.git
This software is copyright (c) 2018 by George S. Baugh.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install App::Prove::Plugin::Elasticsearch, copy and paste the appropriate command in to your terminal.
cpanm
cpanm App::Prove::Plugin::Elasticsearch
CPAN shell
perl -MCPAN -e shell install App::Prove::Plugin::Elasticsearch
For more information on module installation, please visit the detailed CPAN module installation guide.