How to Maintain the CDC(Change data capture) in elasticsearch

I would like to Maintain the CDC logic(scd type2) in elasticsearch, so that I should be able to distinguish the data between current record Vs Previous record, for my high volume changes.

Example :-
{ text: "foo bar",
date: "2011-11-01",
previous: [
{ date: '2011-10-01', content: { text: 'Foo Bar' }},
{ date: '2011-09-01', content: { text: 'Foo-bar!' }},
]
}

Is there any suggestion, best practices and solution would be appreciated .

Thanks In advance.

There is no support for this natively in Elasticsearch, so as far as I know this is something you would need to implement yourself as part of the application layer indexing into Elasticsearch.