Timestamp : StreamCorruptedException

Hi

i have and index with the property timestamp
"timestamp" : {
"type" : "date",
"format" : "yyyy-MM-dd hh:mm:ss"
}

if i try to add time greater than 12 in hh i get a StreamCorruptedException
:
"timestamp" : "2013-05-21 13:10:22"

how to solve this?

thanks in advance

--
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.
For more options, visit https://groups.google.com/groups/opt_out.

Try:
"timestamp" : {
"type" : "date",
"format" : "yyyy-MM-dd HH:mm:ss"
}
See: http://www.elasticsearch.org/guide/reference/mapping/date-format/

--
David :wink:
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

Le 21 mai 2013 à 08:57, kuwar sahani kuwarsahani@gmail.com a écrit :

Hi

i have and index with the property timestamp
"timestamp" : {
"type" : "date",
"format" : "yyyy-MM-dd hh:mm:ss"
}

if i try to add time greater than 12 in hh i get a StreamCorruptedException :
"timestamp" : "2013-05-21 13:10:22"

how to solve this?

thanks in advance

--
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.
For more options, visit https://groups.google.com/groups/opt_out.

--
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.
For more options, visit https://groups.google.com/groups/opt_out.