HI,
Suddenly we are not getting any result for SQL2 query like this:
select * from [cq:PageContent] as data WHERE ISDESCENDANTNODE(data,'/content/experience-fragments/')
whereas this works and return nodes:
select * from [cq:Page] as data WHERE ISDESCENDANTNODE(data,'/content/experience-fragments/')
I created cq:PageContent under experience-fragment folder but still no luck..did re-index cq:PageLucene as well.
Any pointer..?
Solved! Go to Solution.
Views
Replies
Total Likes
Hi @Mayukh007,
I could see it working in 6.5.0. Couldn't check with SP5
As a first step, can you try to execute the below query predicate set in querydebug.html(http://localhost:4502/libs/cq/search/content/querydebug.html) and also in Explain Query (Tools -> Operations -> Diagnosis -> Query Performance)
path=/content/experience-fragments
type=cq:PageContent
p.limit=-1
Still no clue, create a logger for following in Sling -> Log support in Felix console (http://localhost:4502/system/console/slinglog)-> Execute the query again and share the details from log
org.apache.jackrabbit.oak.query.QueryEngineImpl
org.apache.jackrabbit.oak.query.SQL2Parser
org.apache.jackrabbit.oak.query.QueryImpl
com.day.cq.search
org.apache.jackrabbit.oak.query
Views
Replies
Total Likes
Hi @Mayukh007,
I could see it working in 6.5.0. Couldn't check with SP5
As a first step, can you try to execute the below query predicate set in querydebug.html(http://localhost:4502/libs/cq/search/content/querydebug.html) and also in Explain Query (Tools -> Operations -> Diagnosis -> Query Performance)
path=/content/experience-fragments
type=cq:PageContent
p.limit=-1
Still no clue, create a logger for following in Sling -> Log support in Felix console (http://localhost:4502/system/console/slinglog)-> Execute the query again and share the details from log
org.apache.jackrabbit.oak.query.QueryEngineImpl
org.apache.jackrabbit.oak.query.SQL2Parser
org.apache.jackrabbit.oak.query.QueryImpl
com.day.cq.search
org.apache.jackrabbit.oak.query
Thank you for the suggestion.
I tried above steps but still clueless. One more thing, it only does not work for under /content/experience-fragment folder.
So here is what is working and what is not:
select * from [cq:PageContent] as data WHERE ISDESCENDANTNODE(data,'/content/experience-fragments/') = no result
select * from [nt:unstructured] as data WHERE ISDESCENDANTNODE(data,'/content/experience-fragments/') = gives result
select * from [cq:PageContent] as data WHERE ISDESCENDANTNODE(data,'/content/') = gives result too
select * from [cq:PageContent] as data WHERE CONTAINS([cq:tags],"cm-travel:XFTYPE/FAMILYDEP") AND ISDESCENDANTNODE(data,'/content/experience-fragments') AND [sling:resourceType] = "core/wcm/components/page/v1/page" = this works as well
Views
Replies
Total Likes
Hi @Mayukh007,
I could spot one trivial difference between your working query and the one doesn't works. It really didn't matter when I tried from my instance.
Given that it is not working for you anyway, I suggest you to try this
Still no clue,
Views
Replies
Total Likes
Views
Replies
Total Likes
Views
Replies
Total Likes
Views
Replies
Total Likes
Below query provides expected result on AEM 6.5, can you please check error log when this query returns no result for you & also if possible share some screenshot of no result.
-Manjunath
Views
Likes
Replies
Views
Likes
Replies