Trait elastic::types::document::mapping::DocumentMapping [] [src]

pub trait DocumentMapping: PropertiesMapping + Default + PropertiesMapping + Default {
    fn name() -> &'static str;

    fn data_type() -> &'static str { ... }
fn dynamic() -> Option<Dynamic> { ... }
fn enabled() -> Option<bool> { ... }
fn include_in_all() -> Option<bool> { ... } }

The base requirements for mapping an object type.

Required Methods

Get the indexed name for this mapping.

Provided Methods

Get the type name for this mapping, like object or nested.

Whether or not new properties should be added dynamically to an existing object. Accepts true (default), false and strict.

Whether the JSON value given for the object field should be parsed and indexed (true, default) or completely ignored (false).

Sets the default include_in_all value for all the properties within the object. The object itself is not added to the _all field.

Implementors