Skip to content

What is the "took" value for multi-search query #23131

@brijeshrai

Description

@brijeshrai

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions