# Update field name

**URL:** <https://discuss.elastic.co/t/update-field-name/14571>\
**Category:** Elasticsearch\
**Created:** [November 25, 2013, 9:37am UTC](https://discuss.elastic.co/t/update-field-name/14571 "2013-11-25T09:37:26Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![abdo](https://avatars.discourse-cdn.com/v4/letter/a/0ea827/32.png) [@abdo](https://discuss.elastic.co/u/abdo)\
**Post date:** [November 25, 2013, 9:37am UTC](https://discuss.elastic.co/t/update-field-name/14571/1 "2013-11-25T09:37:26Z")

</div>

Is there any way to update a field name, e.g from "username" to "studentname"

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [November 29, 2013, 8:29am UTC](https://discuss.elastic.co/t/update-field-name/14571/2 "2013-11-29T08:29:35Z")

</div>

Send a new version of the document without username but with studentname.  
That said it won't update the mapping itself and you will still see "username" in it.

Could you be a little more precise? Do you want to update a single document? All documents?  
Can you reindex?

--  
David Pilato | Technical Advocate | [Elasticsearch.com](http://Elasticsearch.com)  
@dadoonet | @elasticsearchfr

Le 29 novembre 2013 at 09:18:51, abdo ([abdo.a2008@gmail.com](mailto:abdo.a2008@gmail.com)) a écrit:

Is there any way to update a field name, e.g from "username" to "studentname"

--  
View this message in context: [http://elasticsearch-users.115913.n3.nabble.com/update-field-name-tp4044917.html](http://elasticsearch-users.115913.n3.nabble.com/update-field-name-tp4044917.html)  
Sent from the ElasticSearch Users mailing list archive at [Nabble.com](http://Nabble.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](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/1385372247504-4044917.post%40n3.nabble.com](https://groups.google.com/d/msgid/elasticsearch/1385372247504-4044917.post%40n3.nabble.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](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](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/etPan.5298506f.23d86aac.3e14%40MacBook-Air-de-David.local](https://groups.google.com/d/msgid/elasticsearch/etPan.5298506f.23d86aac.3e14%40MacBook-Air-de-David.local).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 2:04am UTC](https://discuss.elastic.co/t/update-field-name/14571/3 "2017-07-06T02:04:13Z")

</div>


