Clinton Gormley > Elastic-Model > Elastic::Model::Trait::Field

Download:
Elastic-Model-0.28.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 0.28   Source   Latest Release: Elastic-Model-0.29_2-TRIAL

NAME ^

Elastic::Model::Trait::Field - Add Elasticsearch specific keywords to your attribute definitions.

VERSION ^

version 0.28

DESCRIPTION ^

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.

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.

ATTRIBUTES ^

type

mapping

exclude

include_in_all

index

store

multi

index_name

boost

null_value

analyzer

index_analyzer

search_analyzer

search_quote_analyzer

omit_norms

omit_term_freq_and_positions

term_vector

format

precision_step

geohash

lat_lon

geohash_precision

enabled

dynamic

path

include_in_parent

include_in_root

deflator

inflator

include_attrs

exclude_attrs

AUTHOR ^

Clinton Gormley <drtech@cpan.org>

COPYRIGHT AND LICENSE ^

This software is copyright (c) 2014 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.

syntax highlighting: