Add document retrieval to search bar