added flag to debug elasticsearch

currently this is used to print the queries being executed
useful if you want to tweak/run the query yourself