Define runtime fields to retrieve custom values using Painless scripting