Data::AnyXfer::Elastic::Utils::Validator
This module is a helper utility to validate queries against Elasticsearch.
See: https://www.elastic.co/guide/en/elasticsearch/reference/2.4/search-validate.html
use Data::AnyXfer::Elastic::Utils::Validator (); my $validator = Data::AnyXfer::Elastic::Utils::Validator->new;
{ "explanations": [ { "error": "Invalid Exception", "valid": 1 } ], "valid": 1 }
my $validation_response = $validator->validate_geo_shape( Geo::JSON );
Validates the provided GeoJSON shape against Elasticsearch validator. Checks for self-intersections, duplicate points etc.
This software is copyright (c) 2019, Anthony Lucas.
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 Data::AnyXfer, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Data::AnyXfer
CPAN shell
perl -MCPAN -e shell install Data::AnyXfer
For more information on module installation, please visit the detailed CPAN module installation guide.