# What is the lenght limit for fields type values

**URL:** <https://discuss.elastic.co/t/what-is-the-lenght-limit-for-fields-type-values/9192>\
**Category:** Elasticsearch\
**Created:** [September 29, 2012, 4:54am UTC](https://discuss.elastic.co/t/what-is-the-lenght-limit-for-fields-type-values/9192 "2012-09-29T04:54:53Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rashid\_2](https://avatars.discourse-cdn.com/v4/letter/r/e19b73/32.png) [@Rashid\_2](https://discuss.elastic.co/u/Rashid_2)\
**Post date:** [September 29, 2012, 4:54am UTC](https://discuss.elastic.co/t/what-is-the-lenght-limit-for-fields-type-values/9192/1 "2012-09-29T04:54:53Z")

</div>

how can i know what is acceptable length for field type who i declare in my  
mapping.  
example: field type integer and value is '222222' it is ok.  
but why this is not ok field type integer and value is '  
3333333333333333333333333333333333333333'  
how can we know what length is ok for my declared type  
string,integer,long, etc ?  
have anywhere define the length for all fields?

i am confused about creating my mapping.

--

---

<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, 3:10am UTC](https://discuss.elastic.co/t/what-is-the-lenght-limit-for-fields-type-values/9192/2 "2017-07-06T03:10:47Z")

</div>

Closed on July 6, 2017, 3:10am UTC


