Performs the inverse of document search