I define a new mapping to try this option... but the timestamp its not
saved atomatically with the post of the document
My mapping definition :
curl -XPUT "http://localhost:9200/indice/tweet/_mapping" -d'
{
"tweet": {
"properties": {
"message": {
"type": "string"
},
"user": {
"type": "string"
},
"post_date": {
"type": "date"
}
},
"_timestamp" :
{
"enabled":true,
"store": "yes",
"path" : "post_date",
"format" : "yyyy-MM-dd HH:mm:ss"
}
}
}'
When i store a document i supose that this timestamp its going to be stored
with the elasticsearch server date-time
curl -XPUT "http://localhost:9200/indice/tweet/1" -d'
{
"tweet":
{
"message" :"Prueba alta",
"user" : "Pablo"
}
}'
But nothing of this...... why????
curl -XGET "http://localhost:9200/indice/tweet/1"
{
"_index": "indice",
"_type": "tweet",
"_id": "1",
"_version": 5,
"exists": true,
"_source": {
"tweet": {
"message": "Prueba alta",
"user": "Pablo"
}
}
}
Thanks
--
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.