AEM Query Question: Find pages with string pattern; print the pages and the match
I can find pages that contain a string pattern:
type=cq:Page
fulltext=*tion
group.1_path=/content/site/en
orderby.sort=desc
p.limit=10This seems to print the pages that have the pattern *tion within:
{
"path": "/content/site/foo",
"excerpt": "some text here",
"name": "page name",
"title": "page title",
"lastModified": "timestamp",
"created": "timestamp"
},
I want a result that also include the matches themselves, either individually or as multi-values like this:
{
"path": "/content/site/foo",
"match0": "https://contruction.com",
"match1": "tionesta",
"match2": "bastion",
"excerpt": "some text here",
"name": "page name",
"title": "page title",
"lastModified": "timestamp",
"created": "timestamp"
},or:
{
"path": "/content/site/foo",
"match0": "https://contruction.com, tionesta, bastion",
"excerpt": "some text here",
"name": "page name",
"title": "page title",
"lastModified": "timestamp",
"created": "timestamp"
}, Thanks for any info!

