Added ability to use any complex elasticsearch query