Adding log statement for Query execution
Updating search queries to work with API changes