Rename do_search back to search since there is no function name conflict.