I need to be able to copy specific columns of data to an archival column within the same record when the record is updated. For instance, if a record had phoneNumber stored as 123-4567 and was updated to 321-8765, I would want to store the initial phone number in a second column called oldPhoneNumber which would hold onto the initial data. The only way I know to do this is to use the copy_to functionality when mapping the index, but to my knowledge that would overwrite both the original and former data column. Is there any other way of doing this in elasticsearch?
tdicken73 (Todd Dicken) #1
warkolm (Mark Walkom) #2
There is nothing native to ES that does this, you'd have to handle it yourself.
Christian_Dahlqvist (Christian Dahlqvist) #3
You may be able to achieve this by using scripted updates.
system (system) #4
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.