NAME

Data::AnyXfer::Elastic::CreateIndex - Creates Elasticsearch Indices

SYNOPSIS

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
        }
    }
);

DESCRIPTION

This module provides a method for creating Elasticsearch Indices. Modules pulls role Data::AnyXfer::Elastic::Role::CreateIndex in.

COPYRIGHT

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.