Expand my Community achievements bar.

Guidelines for the Responsible Use of Generative AI in the Experience Cloud Community.
SOLVED

Query for Content fragment

Avatar

Level 3

Hi Team,

There is one requirement where i need to fetch the list of Content Fragment through query builder which is having a keyword "profile" in its body. Can someone help me to get the exact query please?

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

@skumari you can try like below

 

type=dam:Asset
path=/content/dam
boolproperty=jcr:content/contentFragment
boolproperty.value=true
property=jcr:content/data/cq:model
property.value=/conf/wknd-shared/settings/dam/cfm/models/adventure
fulltext=profile
fulltext.relPath=jcr:content/data/master

 

Check the examples here https://sourcedcode.com/blog/aem/aem-query-builder-examples-with-content-fragments and you can modify it for your models.

 

 

View solution in original post

4 Replies

Avatar

Correct answer by
Community Advisor

@skumari you can try like below

 

type=dam:Asset
path=/content/dam
boolproperty=jcr:content/contentFragment
boolproperty.value=true
property=jcr:content/data/cq:model
property.value=/conf/wknd-shared/settings/dam/cfm/models/adventure
fulltext=profile
fulltext.relPath=jcr:content/data/master

 

Check the examples here https://sourcedcode.com/blog/aem/aem-query-builder-examples-with-content-fragments and you can modify it for your models.

 

 

Avatar

Administrator

@skumari We hope you found the AEM community valuable. We anticipate your return as either a learner or a contributor. The community benefits from SMEs like you. Please ask your AEM peers to join and contribute. Happy AEM learning!



Kautuk Sahni