Debug a single query


#1

I'm trying to debug single queries in isolation: I'm not interested in how my query is being analyzed (since the fields are all not_analyzed), but rather in seeing how much time goes on fetch, which caches are hit etc. Is this possible for a specific query?

P.S. I've looked at EXPLAIN, but that seems to be about search-analysis internals. The slow-query log shows me which queries are slow and what of type (query-and-fetch, query-then-fetch etc.) they are, but not about where the time gets spent. Setting log-level to TRACE didn't yield what I was looking for, either.


(Mark Walkom) #2

This isn't currently possible.


#3

I thought as much - thank you for the confirmation!


(Jörg Prante) #4

There is a feature request https://github.com/elastic/elasticsearch/pull/6699


#5

That looks great. Is it scheduled for a particular release?


(system) #6