I am using Elasticsearch 6.5.
In one of the indexes in the documents, there is a field, that should always be a structure.
Because of error in the loading scripts for some of the documents data in this field was inserted as one element array which contains target structure.
Is there an easy way to convert these one-element arrays of structures just to structure? I know the fields of the structure beforehand, but I do not know IDs of documents, that need such change.