How to debug queries in elastic search