Expand my Community achievements bar.

Guidelines for the Responsible Use of Generative AI in the Experience Cloud Community.
SOLVED

How to search a Folder in DAM (AEM 6.3)

Avatar

Level 2

Hi,

We have a huge number of folders in DAM, and larger number of assets in each folder. Is there any way I can search with folder title or name and get that folder as a result.

When I search for a folder, if there are any assets inside that folder i am getting all those assets as a result. But i don't need that i need the result as the folder.

Any help is appreciated.

Thanks,

Kishore.

1 Accepted Solution

Avatar

Correct answer by
Level 4

you need a custom search, here are the query details:

type=sling:OrderedFolder

path=/content/dam

property=jcr:title

property.value=We.Retail

The corresponding XPath query would be

/jcr:root/content/dam//element(*, sling:OrderedFolder)

[

(@jcr:title = 'We.Retail')

]

This will return only the folders since we searched for type=sling:OrderedFolder only.

View solution in original post

6 Replies

Avatar

Level 10

You can use the AEM QUeryBuilder API to perform custom searches.

Avatar

Correct answer by
Level 4

you need a custom search, here are the query details:

type=sling:OrderedFolder

path=/content/dam

property=jcr:title

property.value=We.Retail

The corresponding XPath query would be

/jcr:root/content/dam//element(*, sling:OrderedFolder)

[

(@jcr:title = 'We.Retail')

]

This will return only the folders since we searched for type=sling:OrderedFolder only.

Avatar

Level 2

Thanks for your replies. So we don't have any OOTB search rail or something to directly search the folders?

Avatar

Level 2

Thanks everyone. I got AEM 6.4 , which solved my issue.

Avatar

Level 2

Hi Kishore, Can you explain how it got resolved in 6.4 ?