Update search API and add autocomplete API