serialize cluster_index in SampleCluster API