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.