/v1/search api, done. And fix some bugs