search for content in a content fragment that is referenced in another content fragment
I'm implementing a search feature with the Query Builder API. This is a headless solution in which all content is content fragments, including the site's "pages"
This is my initial query and the query works when I search directly in content fragments of type "page"
type=dam:Asset
path=/content/dam/tap/master/pt/pages
property=jcr:content/data/cq:model
property.value=/conf/tap/settings/dam/cfm/models/page
fulltext=dummy test
My problem is when the word I'm looking for is in a content fragment that is being referenced
Example:
If I search for the word holidays
It should have this path (/content/dam/tap/master/pt/pages/politica-de-privacidade/jcr:content/data/master) as a result because the word "holidays" exists within the content fragment (/content/dam/tap/master/pt/components/dark-hero-card) that is being referenced in the properties (ex: sections: ) of the content fragment (/content/dam/tap/master/pt/pages/politica-de-privacidade/jcr:content/data/master)
You can see the structure in the image

What are the possible solutions?