Reputation: 3135
Is there a way to rename the output fields from an elasticsearch query (like the "select .. AS .." in SQL)? I want to keep the original names of the fields in the index, and only modify their names in the result of the query.
I've read this but it says to re-index the data.
Upvotes: 5
Views: 2032
Reputation: 62668
This isn't currently possible in Elasticsearch. If you need this kind of transformation, you'll need to do it application-side.
Upvotes: 3