LPS-47615 Update code to match latest changes in the autocomplete api under ticket LPS-47030

cc/ @jbalsas