enhance the api search feature