# How to set the type of fields using elasticsearch-hadoop cascading

**URL:** <https://discuss.elastic.co/t/how-to-set-the-type-of-fields-using-elasticsearch-hadoop-cascading/15721>\
**Category:** Elasticsearch\
**Created:** [February 11, 2014, 8:10am UTC](https://discuss.elastic.co/t/how-to-set-the-type-of-fields-using-elasticsearch-hadoop-cascading/15721 "2014-02-11T08:10:53Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![11136](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/11136/32/1809_2.png) [@11136](https://discuss.elastic.co/u/11136)\
**Post date:** [February 11, 2014, 8:10am UTC](https://discuss.elastic.co/t/how-to-set-the-type-of-fields-using-elasticsearch-hadoop-cascading/15721/1 "2014-02-11T08:10:53Z")

</div>

Hi all:  
I want to use ESTap to dump my hadoop data to es,but I came across a  
problem,when I export data to a new index, I  
set es.index.auto.create=yes,so index can be created, and mapping type can  
be created as well, but the type of fields always is string,I want to set  
one field to long,how should I do?  
below is method I haved tried but failed:  
suppose the field name is count and both index and mapping type are uv,I  
have following setting.  
props.setProperty("es.mappings.uv.properties.count.type", "long");

Anyone knows?

--  
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/5f761b6f-be0e-46ac-b113-d89bb40e8b1b%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/5f761b6f-be0e-46ac-b113-d89bb40e8b1b%40googlegroups.com).  
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, 1:51am UTC](https://discuss.elastic.co/t/how-to-set-the-type-of-fields-using-elasticsearch-hadoop-cascading/15721/2 "2017-07-06T01:51:11Z")

</div>


