Migration to Simplified Index Management
This article describes how to verify that your Adobe Experience Manager (AEM) as a Cloud Service environment has fully migrated all custom indexes to the Simplified Index Management model, ensuring no legacy configurations remain.
Description description
Environment
Adobe Experience Manager A(EM) as a Cloud Service (all versions)
Issue/Symptoms
- Legacy index definitions are still present in the codebase.
- Required entries such as
<diff.json jcr:primaryType="nt:file" />are missing fromdiff.index/.content.xml. - Filter rules are incorrectly set on
/oak:indexinstead of/oak:index/diff.index. - Outdated
.content.xmlfiles exist in the_oak_indexdirectory.
Cause
Legacy index definitions and filter rules may remain after migration, which can cause incompatibility with the Simplified Index Management approach and may impact the environment after the retirement of the old model.
Resolution resolution
To fix the issue, follow these steps:
-
Review the deployed codebase for custom index definitions under
_oak_indexand remove any legacy index definitions. -
Validate the
diff.indexconfiguration:- Ensure that
ui.apps/src/main/content/jcr_root/_oak_index/diff.index/.content.xmlincludes the entry<diff.json jcr:primaryType="nt:file" />.
- Ensure that
-
Check filter rules:
- Filter rules must not be set on the root
/oak:index. - Update filter declarations to
<filter root="/oak:index/diff.index"/>. - Remove any old filter rules such as
<filter root="/oak:index" mode="merge"/>and<filter root="/oak:index/<legacy-index>" mode="merge"/>.
- Filter rules must not be set on the root
-
Remove outdated files:
- Delete any
.content.xmlfiles for_oak_indexthat are no longer required, such asui.apps/src/main/content/jcr_root/_oak_index/.content.xml.
- Delete any
-
After making these changes, redeploy your codebase and verify that only the required Simplified Index Management configurations remain.