Added new functions for scripted updates in elasticsearch