Resolve Asset Finder Content Fragment filter performance issues in AEM 6.5

Adobe Experience Manager (AEM) 6.5 LTS SP2 Asset Finder may respond slowly or return HTTP 500 errors when filtering Content Fragments because jcr:content/contentFragment isn’t included in the damAssetLucene index, causing queries to traverse dam:Asset nodes under /content/dam. To resolve the issue, add the property to damAssetLucene, enable propertyIndex, reindex the index, and verify Content Fragment filtering.

Description description

Environment

Adobe Experience Manager (AEM) 6.5 LTS SP2

Issue/Symptoms

  • Filtering for Content Fragments in Asset Finder results in slow performance or server errors.
  • In environments with more than 100,000 assets and fragments, filtering may return an HTTP 500 error indicating that the query read or traversed more than 100,000 nodes.

Root cause

The jcr:content/contentFragment property isn’t included in the damAssetLucene index definition. As a result, queries that filter for Content Fragments traverse all dam:Asset nodes under /content/dam, causing performance degradation and server errors when the number of assets is large.

Resolution resolution

Follow the steps below to resolve the issue:

  1. Update the damAssetLuceneindex definition to include jcr:content/contentFragment:

    • Use a supported tool, such as AEM Package Manager or Oak Index Definition Editor, to add a property definition for jcr:content/contentFragment under the dam:Asset index rules in damAssetLucene.
    • Set propertyIndex to true for this property.
  2. Trigger reindexing of damAssetLucene by setting the reindex property to true on the damAssetLuceneindex node.

  3. Monitor the reindexing process until it completes.

  4. Use Asset Finder to filter for Content Fragments and verify that the queries complete successfully without HTTP 500 errors, even with a large number of assets.

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