We have a common search portal which is to search across all the repositories (CMOD, P8 etc). Search portal holds GUID, Segment date and AG name in DB from CMOD. For retrieval, Search portal provides the above values (not field names) to CMOD. We have one to one folder AG mapping. GUID field name is same across all AGs & folders. Only difficulty is to find the Segment date field name in OD and corresponding mapping in folder to set the search criteria. Hope this explains the scenario better.