Hi,
I tried to fetch informations from the repository using the QueryBuilder.
I could reproduce my problem with the servlet.
When I enter this URL :
http://localhost:4502/bin/querybuilder.json?path=/content/geometrixx/en/products/triangle&type=cq:Pa...
It returns 2 results : Features and Overview.
But I would like the query to also return Triangle which is a cq:Page.
Can you help me plz ?
Thanks.
Solved! Go to Solution.
Views
Replies
Total Likes
Hi
When you use path=/content/geometrixx/en/products/triangle, it searches pages under the triangle node. If you want the query to return Triangle, you have to use a different path: http://localhost:4502/bin/querybuilder.json?path=/content/geometrixx/en/products&type=cq:Page.
But of course the query will then return more results.
Views
Replies
Total Likes
I think the correct way to solve this problem would be adding one more parameter:
path.self=true
So your query would be:
Views
Replies
Total Likes
Hi
When you use path=/content/geometrixx/en/products/triangle, it searches pages under the triangle node. If you want the query to return Triangle, you have to use a different path: http://localhost:4502/bin/querybuilder.json?path=/content/geometrixx/en/products&type=cq:Page.
But of course the query will then return more results.
Views
Replies
Total Likes
Ok, so you confirm what I though, that's not possible.
Then I'll search for the element below cq:Page, which is cq:PageContent.
http://localhost:4502/bin/querybuilder.json?path=/content/geometrixx/en/products/triangle&type=cq:Pa...
Thank you.
Views
Replies
Total Likes
Yes that's the way to go if you really want to do that.
cq:PageContent properties are in jcr:content nodes and there is one below each cq:Page.
Views
Replies
Total Likes
I finally got it working by adding another Predicate : path.self=true.
http://localhost:4502/bin/querybuilder.json?path=/content/ethias-sd1/fr/cdc-home/vehicules&type=cq:P...
Views
Replies
Total Likes
Views
Likes
Replies
Views
Like
Replies