dkullmann/CakePHP-Elastic-Search-DataSource — pull request #19 by CriztianiX (2013-12-19 22:59:44+00:00)
Title: columns type

Added to use created, updated, modified in mapping definition

public $_mapping = array(
'id' => array('type' => 'string', 'index' => 'not_analyzed', 'length' => 36),
'client_id' => array('type' => 'integer'),
'name' => array('type' => 'string', 'include_in_all' => false),
'lastname' => array('type' => 'string', 'include_in_all' => false),
'email' => array('type' => 'string'),
'history' => array(
'type'=> 'object',
'properties' => array(
'field' => array('type' => 'string', 'index' => 'not_analyzed'),
'new_value' => array('type' => 'string', 'index' => 'not_analyzed'),
'old_value' => array('type' => 'string', 'index' => 'not_analyzed').
)
),
'created' => array('type' => 'datetime', 'format' => 'yyyy-MM-dd HH:mm:ss'),
'modified' => array('type' => 'datetime', 'format' => 'yyyy-MM-dd HH:mm:ss')
);