How to search a Folder in DAM (AEM 6.3) | Community
Skip to main content
Level 2
Apr 13, 2018 5:58 PM UTC
Solved

How to search a Folder in DAM (AEM 6.3)

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.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Rima_Mittal
Rima_MittalAccepted solution
Level 4
Apr 13, 2018 9:01 PM UTC

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.

6 replies

Level 2
Jul 26, 2019 9:04 AM UTC

Extending Assets Search​ Hey Kishore, Did you do it this way?

Translate
Level 2
Jul 26, 2019 8:17 AM UTC

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

Translate
Level 2
Apr 13, 2018 11:31 PM UTC

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

Translate
Level 2
Apr 13, 2018 10:08 PM UTC

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

Translate
Rima_Mittal
Rima_MittalAccepted solution
Level 4
Apr 13, 2018 9:01 PM UTC

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.

Translate
smacdonald2008
Level 10
Apr 13, 2018 6:49 PM UTC

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

Translate