Fix for autocomplete query where indexName wasn't being passed into the api call