Update the data object after refreshing the index.