Update field name


(abdo) #1

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


(David Pilato) #2

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
@dadoonet | @elasticsearchfr

Le 29 novembre 2013 at 09:18:51, abdo (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
Sent from the ElasticSearch Users mailing list archive at 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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/1385372247504-4044917.post%40n3.nabble.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.
To view this discussion on the web visit 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.


(system) #3