Move searceDoc code in controller so its contiguous with other fetch functions
easier to find