# How to calculate the time taken to process query dsl alone before performing actual searching operation?

**URL:** <https://discuss.elastic.co/t/how-to-calculate-the-time-taken-to-process-query-dsl-alone-before-performing-actual-searching-operation/232137>\
**Category:** Elasticsearch\
**Created:** [May 12, 2020, 5:33am UTC](https://discuss.elastic.co/t/how-to-calculate-the-time-taken-to-process-query-dsl-alone-before-performing-actual-searching-operation/232137 "2020-05-12T05:33:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![kmdabdulla](https://avatars.discourse-cdn.com/v4/letter/k/f9ae1b/32.png) [@kmdabdulla](https://discuss.elastic.co/u/kmdabdulla)\
**Post date:** [May 12, 2020, 5:33am UTC](https://discuss.elastic.co/t/how-to-calculate-the-time-taken-to-process-query-dsl-alone-before-performing-actual-searching-operation/232137/1 "2020-05-12T05:33:13Z")

</div>

I understand that the entire search time is given by the "took" field. But I want to know how much time actually the elasticsearch engine takes to process the query alone before performing the search operation. While it largely depends on how complex the query is, is there a way to measure that?. Help will be much appreciated. Thanks in advance!

---

<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:** [June 9, 2020, 5:33am UTC](https://discuss.elastic.co/t/how-to-calculate-the-time-taken-to-process-query-dsl-alone-before-performing-actual-searching-operation/232137/2 "2020-06-09T05:33:14Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
