ensure shard keys as index