# Get the time required to perform search

**URL:** <https://discuss.elastic.co/t/get-the-time-required-to-perform-search/35676>\
**Category:** Elasticsearch\
**Created:** [November 26, 2015, 2:11pm UTC](https://discuss.elastic.co/t/get-the-time-required-to-perform-search/35676 "2015-11-26T14:11:25Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Anirudh\_Modi](https://avatars.discourse-cdn.com/v4/letter/a/a6a055/32.png) [@Anirudh\_Modi](https://discuss.elastic.co/u/Anirudh_Modi)\
**Post date:** [November 26, 2015, 2:11pm UTC](https://discuss.elastic.co/t/get-the-time-required-to-perform-search/35676/1 "2015-11-26T14:11:25Z")

</div>

Hi,  
I was wondering if there is any way to figure out the time took by a query to perform search?  
It will be really helpful if we can watch the performance of our query somehow.  
Thanks,  
Anirudh Modi

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [November 27, 2015, 7:19am UTC](https://discuss.elastic.co/t/get-the-time-required-to-perform-search/35676/2 "2015-11-27T07:19:08Z")

</div>

There is a `took:` field in the response that should help, see [here](https://www.elastic.co/guide/en/elasticsearch/guide/current/empty-search.html#_took).

---

<div class="post-metadata">

**Author:** ![Anirudh\_Modi](https://avatars.discourse-cdn.com/v4/letter/a/a6a055/32.png) [@Anirudh\_Modi](https://discuss.elastic.co/u/Anirudh_Modi)\
**Post date:** [November 27, 2015, 10:33am UTC](https://discuss.elastic.co/t/get-the-time-required-to-perform-search/35676/3 "2015-11-27T10:33:09Z")

</div>

Thanks for the help.

---

<div class="post-metadata">

**Author:** ![Anirudh\_Modi](https://avatars.discourse-cdn.com/v4/letter/a/a6a055/32.png) [@Anirudh\_Modi](https://discuss.elastic.co/u/Anirudh_Modi)\
**Post date:** [November 27, 2015, 1:02pm UTC](https://discuss.elastic.co/t/get-the-time-required-to-perform-search/35676/4 "2015-11-27T13:02:31Z")

</div>

One more query that took: says it is time to execute the entire search request, so does this include fetching of the records also?

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [November 27, 2015, 11:19pm UTC](https://discuss.elastic.co/t/get-the-time-required-to-perform-search/35676/5 "2015-11-27T23:19:04Z")

</div>

Yes, because that is part of the query.

---

<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:35pm UTC](https://discuss.elastic.co/t/get-the-time-required-to-perform-search/35676/6 "2017-07-05T23:35:17Z")

</div>


