adding client side code for search API

only NOAPI, need to add for NOAPICachedStore