# Elasticsearch fields and elasticsearch-hadoop

**URL:** <https://discuss.elastic.co/t/elasticsearch-fields-and-elasticsearch-hadoop/20312>\
**Category:** Elasticsearch\
**Created:** [October 17, 2014, 8:36pm UTC](https://discuss.elastic.co/t/elasticsearch-fields-and-elasticsearch-hadoop/20312 "2014-10-17T20:36:50Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Akil\_Harris](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/akil_harris/32/1182_2.png) [@Akil\_Harris](https://discuss.elastic.co/u/Akil_Harris)\
**Post date:** [October 17, 2014, 8:36pm UTC](https://discuss.elastic.co/t/elasticsearch-fields-and-elasticsearch-hadoop/20312/1 "2014-10-17T20:36:50Z")

</div>

Is there an easy way to rename the fields on an index?

I have a field named "searchTerm" that I use for some event tracking. But  
the elasticsearch-hadoop library assumes all elasticsearch fields are  
lowercase and is converting all field names to lower case. When hadoop  
tries to retrieve the data from the index the field doesn't match and I  
just get a null value back. So the question is can I rename this field  
from "searchTerm" to "search\_term" or "searchterm" in some easy way? Or do  
I need to setup a new index pull all the records in the current index  
rename the fields to lowercase and insert into the new index.

Thanks,

Akil

--  
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/3a8c91ba-4e7a-4a47-9593-f371502c310a%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/3a8c91ba-4e7a-4a47-9593-f371502c310a%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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, 12:55am UTC](https://discuss.elastic.co/t/elasticsearch-fields-and-elasticsearch-hadoop/20312/2 "2017-07-06T00:55:23Z")

</div>


