The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

App::Prove::Elasticsearch::Indexer - Define what data is to be uploaded to elasticsearch, and handle it's uploading

VERSION

version 0.001

SYNOPSIS

    App::Prove::Elasticsearch::Indexer::check_index({ 'server.host' => 'zippy.test', 'server.port' => 9600 });

VARIABLES

index (STRING)

The name of the elasticsearch index used. If you are subclassing this, be aware that the Searcher plugin will rely on this.

max_query_size

Number of items returned by queries. Defaults to 1000.

SUBROUTINES

check_index

Returns 1 if the index needed to be created, 0 if it's already OK. Dies if the server cannot be reached, or the index creation fails.

index_results

Index a test result (see App::Prove::Elasticsearch::Parser for the input).

bulk_index_results(@results)

Helper method for migration scripts. Uploads an array of results in bulk such as would be fed to index_results.

It is up to the caller to chunk inputs as is appropriate for your installation.

associate_case_with_result(%config)

Associate an indexed result with a tracked defect.

Requires configuration to be inside of ENV vars already.

Arguments Hash:

case STRING - case to associate defect to
defects ARRAY - defects to associate with case
platforms ARRAY - filter out any results not having these platforms
versions ARRAY - filter out any results not having these versions

SPECIAL THANKS

Thanks to cPanel Inc, for graciously funding the creation of this module.

AUTHOR

George S. Baugh <teodesian@cpan.org>

SOURCE

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

COPYRIGHT AND LICENSE

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.