How to search a Folder in DAM (AEM 6.3) | Community
Skip to main content
Level 2
April 13, 2018
Solved

How to search a Folder in DAM (AEM 6.3)

  • April 13, 2018
  • 6 replies
  • 5002 views

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.
Best answer by Rima_Mittal

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

smacdonald2008
Level 10
April 13, 2018

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

Rima_Mittal
Rima_MittalAccepted solution
Level 4
April 13, 2018

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.

Level 2
April 13, 2018

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

Level 2
April 13, 2018

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

Level 2
July 26, 2019

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

Level 2
July 26, 2019

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