Convert single value array in "_source" to single value in "stored_fields"

I have data that will always be single value, but it is being sent to my Elasticsearch 5.6 instance as an array. I do not have control over how the data is being sent or the version of Elasticsearch. I do have control over how the properties are mapped in my index.

Is there a way for me to utilize an index property mapping to convert the _source value of "firstName": ["Eric"] to a stored_fields value of "firstName": "Eric"?

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