cerate scripted fields using esType value, type value is undefined