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.indexanddiff.json. - The issue occurs when a standard analyzer block is included in
diff.json, including configurations that use built-in Lucene factories such asLowerCase,ASCIIFolding,HTMLStrip, andStandardtokenizer 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.indexafter 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:
-
Review the
diff.jsonconfiguration for the Lucene index under migration. -
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. -
As a test, remove the analyzer block from
diff.jsonand redeploy. If the deployment succeeds, this confirms that the analyzer block causes the failure. -
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.jsonis confirmed and documented. - If possible, implement the search requirements using only supported index features in Simplified Index Management.
- Retain the legacy full-XML index definition for indexes that require custom analyzers until analyzer support in
-
If you’re migrating to
/oak:index/diff.index, ensure that any legacy index filter entries are removed fromfilter.xml. -
Remove duplicate or unnecessary property definitions from the index configuration as part of the migration cleanup.
-
After making the changes, redeploy and verify that the new indexes are created successfully under
/oak:index/and that/oak:index/diff.indexdoesn’t report any warnings.