Search Api 404 error

This is for the vanilla open source api.
When I hit the api url for search api to search for comment with word 'test' (/api/v2/search/test). I get following message.
To add categories, discussions & comments api calls work perfectly fine. Also I can search perfectly fine in the vanilla app. However search api doesnt work.
Appreciate your help me to get it resolve.
{ "message": "/api/v2/search/test not found.", "status": 404, "description": null }
2