ElasticSearch: Use a compound tenant-ID + page-ID field?
问题 I've just starated devising an ElasticSearch mapping for a multitenant web app. In this app, there are site ID:s and page ID:s. Page ID:s are unique per site, and randomly generated. Pages can have child pages. What is best: 1) Use a compound key with site + page-ID:s? Like so: "sitePageIdPath": "(siteID):(grandparent-page-ID).(parent-page-ID).(page-ID)" or: 2) Use separate fields for site ID and page IDs? Like so: "siteId": "(siteID)", "pageIdPath": "(grandparent-page-ID).(parent-page-ID).