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

NAME

BenchmarkAnything::Storage::Search::Elasticsearch - Utility functions to use Elasticsearch with BenchmarkAnything storage

$object = get_elasticsearch_client (\%opt)

Create end return an Elasticsearch client instance, together with its index and type name from benchmarkanything config.

Options

searchengine

The content of the searchengine entry from BenchmarkAnything::Config;

ownjson

If set to a true value then the client uses a JSON serializer that does not try to upgrade/downgrade/encode/decode your already fine utf-8 data.

\%es_query = get_elasticsearch_query (\%ba_query)

Converts a BenchmarkAnything query into a respective Elasticsearch query.

AUTHOR

Steffen Schwigon <ss5@renormalist.net>

COPYRIGHT AND LICENSE

This software is copyright (c) 2017 by Steffen Schwigon.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.