How we know 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.

--

Hi,

i think therefore you have to check the ranges of java data types.
Could be wrong, but i think byte,double,float,int, long, short and String
are supported. ,

Java's Primitive Data Types could be helpful.

Greetings

Christian Th

Am Freitag, 28. September 2012 14:11:41 UTC+2 schrieb Rashid:

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.

--