Get a key for a given IndexTree data.