AEM as a Cloud Service deployment fails with standard analyzer in diff.json during Lucene index migration

Adobe Experience Manager (AEM) as a Cloud Service deployments may fail during the Update Indexes step when diff.json contains a standard analyzer block during migration to Simplified Index Management. To resolve the issue, test the deployment without the analyzer block and use a legacy index definition or supported Simplified Index Management features when the analyzer is required.

Description description

Environment

Adobe Experience Manager as a Cloud Service (AEMaaCS), all versions

Issue/Symptoms

  • Deployments may fail during the Update Indexes step when migrating custom Oak Lucene indexes from legacy XML definitions to Simplified Index Management using/oak:index/diff.index and diff.json.
  • The issue occurs when a standard analyzer block is included in diff.json, including configurations that use built-in Lucene factories such as LowerCase, ASCIIFolding, HTMLStrip, and Standard tokenizer without custom Java classes.
  • Deployments containing the analyzer block with either empty objects or null values for analyzer nodes consistently fail during Update Indexes.
  • Deployments without the analyzer block complete successfully.
  • No explicit error message or warning property appears in the deployment output or /oak:index/diff.index after the failure.
  • The merged index node may display the analyzer block in a flattened, property-based form after deployment.

Root cause

Deployment fails during the Update Indexes step when a standard analyzer block is defined in diff.json for Simplified Index Management because of a limitation or syntax issue with analyzer support in this context.

Resolution resolution

Follow the steps below to resolve the issue:

  1. Review the diff.json configuration for the Lucene index under migration.

  2. If the configuration contains an analyzer block that uses only built-in Lucene factories, such as LowerCase, ASCIIFolding, HTMLStrip, and Standard tokenizer, be aware that the deployment may fail during the Update Indexes step.

  3. As a test, remove the analyzer block from diff.json and redeploy. If the deployment succeeds, this confirms that the analyzer block causes the failure.

  4. If the analyzer is required for the search use case, for example, for case- and accent-insensitive search, consider the following options:

    • Retain the legacy full-XML index definition for indexes that require custom analyzers until analyzer support in diff.json is confirmed and documented.
    • If possible, implement the search requirements using only supported index features in Simplified Index Management.
  5. If you’re migrating to /oak:index/diff.index, ensure that any legacy index filter entries are removed from filter.xml.

  6. Remove duplicate or unnecessary property definitions from the index configuration as part of the migration cleanup.

  7. After making the changes, redeploy and verify that the new indexes are created successfully under /oak:index/ and that /oak:index/diff.index doesn’t report any warnings.

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