Skip to main content
sureshy2015
Level 4
Oct 16, 2015 2:29 AM UTC
Solved

Need querybuilder code for getting page references.

Hi,

I want to get page references of a page using query builder.Please help me same regarding the same.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
JustinEd3Accepted solution
Adobe Employee
Oct 16, 2015 2:29 AM UTC

Hi,

Is there a reason you don't want to use https://docs.adobe.com/docs/en/aem/6-1/ref/javadoc/com/day/cq/wcm/commons/ReferenceSearch.html#search(org.apache.sling.api.resource.ResourceResolver,%20java.lang.String) which is purpose built for this?

If you need to use QueryBuilder, just do a full text search for the path, i.e fulltext=/etc/designs/geometrixx-media

Regards,

Justin

1 reply

JustinEd3Adobe EmployeeAccepted solution
Adobe Employee
Oct 16, 2015 2:29 AM UTC

Hi,

Is there a reason you don't want to use https://docs.adobe.com/docs/en/aem/6-1/ref/javadoc/com/day/cq/wcm/commons/ReferenceSearch.html#search(org.apache.sling.api.resource.ResourceResolver,%20java.lang.String) which is purpose built for this?

If you need to use QueryBuilder, just do a full text search for the path, i.e fulltext=/etc/designs/geometrixx-media

Regards,

Justin

Translate