Expand my Community achievements bar.

SOLVED

Not able to search assets based on custom metadata property.

Avatar

Level 3

As per https://experienceleague.adobe.com/en/docs/experience-manager-cloud-service/content/assets/manage/se... , I am trying to search assets using "GQL search using specific values in metadata fields". But it is not returning results. 

 

sangrampatil111_0-1712144982168.png

property : jcr:content/metadata/dc:dcCode

value: ASC

 

please help.

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

1 Accepted Solution

Avatar

Correct answer by
Level 3

The issue is now resolved. 

I used "jcr:content/metadata/dc:dcCode":ASC.

 

 

View solution in original post

3 Replies

Avatar

Community Advisor

Hi @sangrampatil111,

See if the below resources can help for GQL Search Query-

GQL Full-text Search {#gql-full-text-search}

Class GQL

 

But you can always use the standard query builder to extract assets which have custom metadata property.

Reference - Find AEM JCR Nodes with Full Text Search

 

Sample Query - 

type=dam:AssetContent
path=/content/dam
p.property=jcr:content/metadata/dccode
p.property.value=ASC
p.limit=-1

 

Hope this helps!

 

Rohan Garg

Avatar

Level 3

Thank you @Rohan_Garg,

I tried the above but it is not working. We are using AEM6.5 and SP16.  

Also, this is the client's requirement as they want an easy way to search assets having particular property and value.

 

 

Avatar

Correct answer by
Level 3

The issue is now resolved. 

I used "jcr:content/metadata/dc:dcCode":ASC.