Skip to content

Latest commit

 

History

History
25 lines (21 loc) · 557 Bytes

README.md

File metadata and controls

25 lines (21 loc) · 557 Bytes

Elasticsearch Profile Reader

Maybe an explain analyze for ES without the x-pack package ? Extremely experimental

Pass the result of an ES query with profiling enabled (https://www.elastic.co/guide/en/elasticsearch/reference/current/search-profile.html#_usage_3)

Example

curl -XGET 'localhost:9200/twitter/_search' -d'
{
  "profile": true,
  "query" : {
    "match" : { "message" : "some number" }
  }
} | ./espr.py
'

Result

Shard: [2aE02wS1R8q_QFnYu6vDVQ][twitter][0]
> BooleanQuery 1873 ms
   > TermQuery 210 ms
   > TermQuery 391 ms