support search api

1. add convenient batch file to upload and rollback application;
2. implement search api;
3. add api to insert search document for all existing annos.