Renaming any field. in elastic search

Hi folks,
Can you please help in renaming any field name in elastic search.
I want to rename a field.
For example.
{"field":{"MsgData":"abc"} this is my filed.
after running the query
how can i rename the MsgData field with DATA .ie DATA:abc in output.

Regrads
Mohit Kumar Yadav
mohit.kumar.ngi@gmail.com

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

You have to push again the document with the new field with the same index/type/ID.
{"field":{"DATA":"abc"} }

--
David Pilato | Technical Advocate | Elasticsearch.com
@dadoonet | @elasticsearchfr | @scrutmydocs

Le 5 avr. 2013 à 11:25, Mohit Kumar Yadav mohit.kumar.ngi@gmail.com a écrit :

Hi folks,
Can you please help in renaming any field name in Elasticsearch.
I want to rename a field.
For example.
{"field":{"MsgData":"abc"} this is my filed.
after running the query
how can i rename the MsgData field with DATA .ie DATA:abc in output.

Regrads
Mohit Kumar Yadav

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Hey,

you can also rename index names in the mapping if you want (but I am afraid
this will make things A LOT less transparent), see
Elasticsearch Platform — Find real-time answers at scale | Elastic and the
index_name attribute

On Fri, Apr 5, 2013 at 11:27 AM, David Pilato david@pilato.fr wrote:

You have to push again the document with the new field with the same
index/type/ID.
{"field":{"DATA":"abc"} }

--
David Pilato | Technical Advocate | Elasticsearch.com
@dadoonet https://twitter.com/dadoonet | @elasticsearchfrhttps://twitter.com/elasticsearchfr
| @scrutmydocs https://twitter.com/scrutmydocs

Le 5 avr. 2013 à 11:25, Mohit Kumar Yadav mohit.kumar.ngi@gmail.com a
écrit :

Hi folks,
Can you please help in renaming any field name in Elasticsearch.
I want to rename a field.
For example.
{"field":{"MsgData":"abc"} this is my filed.
after running the query
how can i rename the MsgData field with DATA .ie DATA:abc in output.

Regrads
Mohit Kumar Yadav
mohit.kumar.ngi@gmail.com

--
You received this message because you are subscribed to the Google Groups
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

--
You received this message because you are subscribed to the Google Groups
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.