Expand my Community achievements bar.

SOLVED

CQ5.5 Query Builder: how to get a list of properties

Avatar

Level 6

I am using CQ5.5 and want to get a list of properties by running a query under the http://localhost:4502/libs/cq/search/content/querydebug.html.

My query:

path=/content/mysites/
p.hits=selective
p.properties=firstName lastName
property=jcr:content/fragment/sling:resourceType
property.value=mysite/components/content/talent/fragment
p.limit=-1

The query returns a list of page links, not the property I specified. 

Does anyone know what's missing in my query? How to get the property value using query builder? Appreciate if you can provide a working example.

 

Thanks.

1 Accepted Solution

Avatar

Correct answer by
Level 10

Take a look at this community article about predicates  - it may help you:

http://www.wemblog.com/2013/04/how-to-create-custom-query-predicate-in.html

View solution in original post

1 Reply

Avatar

Correct answer by
Level 10

Take a look at this community article about predicates  - it may help you:

http://www.wemblog.com/2013/04/how-to-create-custom-query-predicate-in.html