Document search endpoint