update the output search result, and auto indent the search related files