first attempt at mapping queryMap to ES query