-
Notifications
You must be signed in to change notification settings - Fork 25.5k
Description
When we execute a search query on elasticsearch cluster, "took" field shows the time in milliseconds the query has taken to execute. I believe its equal to the sum of time spent in search queue (if any) + time taken in query phase + time taken in fetch phase considering the search type is query_then_fetch.
However, msearch API doesn't expose any feature like "took" to find out total time taken by the multi-search query. How do we know how much time multi-search query took. Is it equal to the sum of "took" value of all the individual queries (which, I believe, shouldn't be the case as queries run in parallel) or maximum of all the individual query's "took" value or something else? If answer is something else then wouldn't it be helpful to add "took" field for msearch API as well.