Field Alias in Discover Plugin

Versions (relevant - OpenSearch/Dashboard/Server OS/Browser):

2.16.0/Google Chrome

Describe the issue:
I’m trying to create a field alias for relevant fields in my index. As an example, I have a field products.product_id that I want to appear as “Product ID”. I would like this to appear in the “Available Fields” on the left-hand side, as well as anywhere else in the Discover plugin. Internally however, I want it still to refer to it as products.product_id for tracking. Is there any way I can do this?

I’ve tried to create aliases with the Dev Tools using the _mappings endpoint, however that does not change the appearance of the data anywhere except the Filters.

I’m just trying to create a more human readable version of the field, any ideas?

Thanks.

Configuration:

Relevant Logs or Screenshots:

Hi @cpeters,

There is an open issue on GitHub with a similar request:

I managed to rename a field in OpenSearch Dashboards using a Scripted Field. This might work as a workaround for you.