Expand my Community achievements bar.

SOLVED

Need querybuilder code for getting page references.

Avatar

Level 4

Hi,

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

1 Accepted Solution

Avatar

Correct answer by
Employee

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#searc...) 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

View solution in original post

1 Reply

Avatar

Correct answer by
Employee

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#searc...) 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