Expand my Community achievements bar.

SOLVED

Which is the best approach of finding assets references in bulk on AEM Assets?

Avatar

Level 4

I have an use case of finding references of assets (images, pdfs, videos) in bulk across site. Each folder contains 2500+ assets.

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

1 Accepted Solution

Avatar

Correct answer by
Level 4

Found the best approach of using AEM ACS commons report. 

Link: /apps/acs-commons/content/reports.html

View solution in original post

2 Replies

Avatar

Community Advisor

You might want to explore this - AssetReferenceSearch

public AssetReferenceSearch(Node node,
                            java.lang.String searchPath,
                            ResourceResolver resolver)
The constructor.
Parameters:
node - node to start search for references
searchPath - search for assets starting with searchPath
resolver - resource resolver

public java.util.Map<java.lang.String,Asset> search()
Search all asset references
Returns:
map containing all asset refs

Avatar

Correct answer by
Level 4

Found the best approach of using AEM ACS commons report. 

Link: /apps/acs-commons/content/reports.html