Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

Is there a way to search an asset based on the metadata schema that the parent folder / root folder is mapped to ?

Avatar

Level 2

Hi Team,

I have a requirement like "to search for an asset based on the metadata schema that the parent folder or root folder is mapped to.

Please help me to resolve this issue.

 

Thank You,

Kaibalya Jena

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hello @KaibalyaJena_123 

 

As you mentioned, metadata schemas are applied on folders. The information isn't available on Asset itself.

 

One easy way might be to add a Hidden field in metadata schema and profile unique value for each schema.

 

Now when assets are uploaded into folders, they would get these unique values based on applicable schemas.

 

You could now execute search based on these values.


Aanchal Sikka

View solution in original post

1 Reply

Avatar

Correct answer by
Community Advisor

Hello @KaibalyaJena_123 

 

As you mentioned, metadata schemas are applied on folders. The information isn't available on Asset itself.

 

One easy way might be to add a Hidden field in metadata schema and profile unique value for each schema.

 

Now when assets are uploaded into folders, they would get these unique values based on applicable schemas.

 

You could now execute search based on these values.


Aanchal Sikka