I have tried like below this
POST index_test
{
"mapping" : {
"type_test" : {
"_timestamp" : {
"enabled" : true,
"copy_to" : "created_date"
},
"properties" : {
"name" : { "type" : "string"},
"location" : { "type" : "string"},
"created_date" : { "type" : "date" }
}
}
}
}
POST index_test/type_test/123
{
"name" : "Full Test",
"location" : "local"
}
But the result that doesn't have "created_date" field. What did I do wrong
or missing?
GET index_test/_search
The result
{
"took": 3,
"timed_out": false,
"_shards": {
"total": 5,
"successful": 5,
"failed": 0
},
"hits": {
"total": 1,
"max_score": 1,
"hits": [
{
"_index": "index_test",
"_type": "type_test",
"_id": "123",
"_score": 1,
"_source": {
"name": "Full Test",
"location": "local"
}
}
]
}
}
On Monday, February 23, 2015 at 11:22:56 PM UTC+7, David Pilato wrote:
Timestamp doc
Elasticsearch Platform — Find real-time answers at scale | Elastic
Copy To doc:
Elasticsearch Platform — Find real-time answers at scale | Elastic
HTH.
If you don’t succeed, please GIST a full example of what you did so far so
we can reproduce and help.
See Elasticsearch Platform — Find real-time answers at scale | Elastic
--
David Pilato | Technical Advocate | Elasticsearch.com
http://Elasticsearch.com
@dadoonet https://twitter.com/dadoonet | @elasticsearchfr
https://twitter.com/elasticsearchfr | @scrutmydocs
https://twitter.com/scrutmydocs
--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/8d006d81-28a8-48ab-a571-688e8fabb5e5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.