email search functionality for single queries complete