Query for Content fragment | Community
Skip to main content
Level 3
January 2, 2024
Solved

Query for Content fragment

  • January 2, 2024
  • 1 reply
  • 1064 views

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?

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 Saravanan_Dharmaraj

@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.

 

 

1 reply

Saravanan_Dharmaraj
Community Advisor
Saravanan_DharmarajCommunity AdvisorAccepted solution
Community Advisor
January 2, 2024

@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.

 

 

VeenaVikraman
Community Advisor
Community Advisor
January 2, 2024

@skumari Yes , this should work for you.