# How do I include timestamps for documents in my search results

**URL:** <https://discuss.elastic.co/t/how-do-i-include-timestamps-for-documents-in-my-search-results/27072>\
**Category:** Elasticsearch\
**Created:** [August 7, 2015, 11:54pm UTC](https://discuss.elastic.co/t/how-do-i-include-timestamps-for-documents-in-my-search-results/27072 "2015-08-07T23:54:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mhutton86](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mhutton86/32/4106_2.png) [@mhutton86](https://discuss.elastic.co/u/mhutton86)\
**Post date:** [August 7, 2015, 11:54pm UTC](https://discuss.elastic.co/t/how-do-i-include-timestamps-for-documents-in-my-search-results/27072/1 "2015-08-07T23:54:49Z")

</div>

I tried to create an index with \_timestamp enabled

POST [http://localhost:9200/my\_index/](http://localhost:9200/my_index/)

```
"mappings" : {
    "_default_":{
        "_timestamp" : {
            "enabled" : true,
            "store" : true
        }
    }
  }
}

```

I then stored a bunch of documents  
Then tried to search for the documents while includeing the \_timestamp field

POST [http://localhost:9200/my\_index/\_search](http://localhost:9200/my_index/_search)

```
{
"fields" : ["_timestamp","_source"],
"query" : {
    "match_all" : {}
}

```

}

The results returned don't have the timestamp field though:

```
hits: [10]
0: {
_index: "my_index"
_type: "my_type"
_id: "AU8KjAlJFCjkzvnECh9d"
_score: 1
_source: { ...

```

What's missing?

Thank you for any support!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 5, 2017, 11:56pm UTC](https://discuss.elastic.co/t/how-do-i-include-timestamps-for-documents-in-my-search-results/27072/2 "2017-07-05T23:56:44Z")

</div>


