What is the lenght limit for fields type values

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.

--