Elastic::Model::Trait::Field - Add Elasticsearch specific keywords to your attribute definitions.
version 0.52
Elastic::Model::Trait::Field is automatically applied to all of your attributes when you include use Elastic::Doc; at the top of your doc classes. This trait adds keywords to allow you to configure how each attribute is indexed in Elasticsearch.
use Elastic::Doc;
It also wraps all attribute accessors to ensure that Elastic::Doc objects are properly inflated before any attribute is accessed.
See Elastic::Manual::Attributes for an explanation of how to use these keywords.
Clinton Gormley <drtech@cpan.org>
This software is copyright (c) 2015 by Clinton Gormley.
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 Elastic::Model, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Elastic::Model
CPAN shell
perl -MCPAN -e shell install Elastic::Model
For more information on module installation, please visit the detailed CPAN module installation guide.