Minor refactor on server Search controller.
Added comments to Search controller.