self.client.indices.put_mapping(index='accesslog', doc_type='logs_june',
    body={'_timestamp': {'enabled': 'true'}, 'properties': {'logdate': {
    'type': 'date', 'format': 'dd/MM/yyy HH:mm:ss'}}})
python elasticsearch client set mappings during create index