[#7257] factor up the common index_id method
3 files changed