Moves _search() function closer to get() and post() methods, etc.