Migrating scripted fields

Hi there
I have some scripted fields in an instance of elasticsearch with version 6.0.0. I want them now in my elasticsearch 6.4.0. When I just take and copy them don't work anymore. The scripts all deal with dates. Here's one for example: def x= doc['CreationDate'].date.dayOfWeek; return x;
One thing to note: in version 6.0.0, the 'CreationDate' field was a date field of dd.mm.yyyy format. Now in version 6.4.0 the 'CreationDate' field is a date field of dd.mm.yyyy HH:mm:ss.
Is there a way to get this scripted field working again?

I restarted ES, now the fields work.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.