Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

How to search a Folder in DAM (AEM 6.3)

kishore4784
Level 2
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
Rima_Mittal
Correct answer by
Level 4
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
smacdonald2008
Level 10
Level 10

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

Rima_Mittal
Correct answer by
Level 4
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

kishore4784
Level 2
Level 2

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

kishore4784
Level 2
Level 2

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

k_ra
Level 2
Level 2

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