Added APIs for simple search and for advanced search.