AEM xpath query with contains for a certain cq page aem6.5
Hi ,
Could some one provide inputs as how to generate jcr:contains query using xpath , I would need case insensitive search but only limiting to certain node paths
I am getting the below
/jcr:root/content/project/us/en//Product_Reference_Guide//element(*, cq:Page)
[
((jcr:content/root/container/node1/_text/@2107369 = '%battery%'))
and (jcr:contains(jcr:content/root/container/node2/_text/@2107369, '%baTTery%'))
]
order by @6655266:score descending
I am using the below in querydebug.html
path=/content/project/us/en/Product_Reference_Guide
orderby=@jcr:score
orderby.sort=desc
type=cq:Page
group.1_property=jcr:content/root/container/node1/_text/@text
group.1_property.1_value=%battery%
fulltext.relPath=jcr:content/root/container/node2/_text/@text
fulltext=%baTTery%
I have used fulltext.relPath which generated the jcr:contains but cannot use it on other path
when I use group.1_property it does not again generate jcr:contains
How to solve this. Any inputs will be helpful.
Regards,
Srinivas
