Update searchApi and autocompleteApi