Implemented search API.