Update search to take a search type for future improvements to API