How to make elasticsearch add the timestamp field to every document in all indices?

Elasticsearch used to support automatically adding timestamps to documents being indexed, but deprecated this feature in 2.0.0 From the version 5.5 documentation: The _timestamp and _ttl fields were deprecated and are now removed. As a replacement for _timestamp, you should populate a regular date field with the current timestamp on application side.

Using AutoMapper to unflatten a DTO

This also seems to work for me: Mapper.CreateMap<PersonDto, Address>(); Mapper.CreateMap<PersonDto, Person>() .ForMember(dest => dest.Address, opt => opt.MapFrom( src => src ))); Basically, create a mapping from the dto to both objects, and then use it as the source for the child object.