Sometimes, when firing a query, it gets delayed, or the response time is slow. There could be a number of reasons for the sluggishness of the query ranging from shard issues to time needed to compute certain elements in the query. Since version 2.2., Elasticsearch provides the Profile API for users to inspect the query execution time and other details. In this blog post, we explore how the profile API can be used to look into query timings. For this tutorial, Elasticsearch 5.0 version was used.

Keep reading