How to Index Item IDs for Recommendation Foundation Models