new search_api code