Data::AnyXfer::Elastic::CreateIndex - Creates Elasticsearch Indices
use Data::AnyXfer::Elastic::CreateIndex; my $bool = Data::AnyXfer::Elastic::CreateIndex->new->create_index( { { name => 'interiors_2013', # required mappings => \%mappings, # optional settings => \%settings, # optional warmers => \%warmers, # optional aliases => \%aliases, # optional delete_previous => 1, # optional } } );
This module provides a method for creating Elasticsearch Indices. Modules pulls role Data::AnyXfer::Elastic::Role::CreateIndex in.
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.