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 from diff.index/.content.xml.
  • Filter rules are incorrectly set on /oak:index instead of /oak:index/diff.index.
  • Outdated .content.xml files exist in the _oak_index directory.

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:

  1. Review the deployed codebase for custom index definitions under _oak_index and remove any legacy index definitions.

  2. Validate the diff.index configuration:

    • Ensure that ui.apps/src/main/content/jcr_root/_oak_index/diff.index/.content.xml includes the entry <diff.json jcr:primaryType="nt:file" />.
  3. 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"/>.
  4. Remove outdated files:

    • Delete any .content.xml files for _oak_index that are no longer required, such as ui.apps/src/main/content/jcr_root/_oak_index/.content.xml.
  5. After making these changes, redeploy your codebase and verify that only the required Simplified Index Management configurations remain.

recommendation-more-help
experience-cloud-kcs-help-kbarticles