Update search.R

minor fixes in coding style