Using the search function to find documents