I executed my query with "profile":true option and observed the time taken by Lucene operations. But I'm not getting the below
- Took Time is "took": 12847
- The query has to execute against a indice with two shards.
- In shard 1, I could see 28 query operations in profile where one of the BooleanQuery took 17374.09175ms.
- In Shard 2, I could see 29 query operations in profile where one of the BooleanQuery took 33111.97980ms.
I'm not able to understand how took time is much lesser than this? I'm trying to optimize the query and trying to understand where the time is spent in buckets
viz. Time spent on I/O.. Is IO a bottleneck?
Time spent on Aggregations (i have nested aggregation)
Time spent on Search
NOTE: There is a another post in forum where the case is opposite. Vis. Took time is more than profile time. But yes, it may not include n/w delay etc. The case is different here though!