Search and sort based on properties of referenced nodes | Community
Skip to main content
Level 4
March 11, 2022

Search and sort based on properties of referenced nodes

  • March 11, 2022
  • 2 replies
  • 816 views

What is the best way to search and sort JCR nodes[having references to another set of nodes] based on a properties on the referenceable nodes they are referencing ?

Please look at the below sample node structure

 

Parent-node-a

Child-node-a1

: name - String - Test1

: propertyX- Reference - uuid1

Child-node-a2

: name - String - Test2

: propertyX- Reference - uuid2

 

…..

 

 

Parent-node-b

Child-node-b1

: title- String - TestTitle1

: id - String- 123

: jcr:uuid - uuid1

 

Child-node-b2

: title- String - TestTitle2

: id - String- 453

: jcr:uuid - uuid2

 

Now I would like to search and sort child nodes  under parent-node-a based on the tile property on the nodes they are reference from parent-node-b. Appreciate any guidance here.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

2 replies

kautuk_sahni
Community Manager
Community Manager
March 23, 2022

 @raja-karuppsamy @anudeep_garnepudi @fanindra_surat @kchaurasiya @vmadala Request your help with this community question. 

Kautuk Sahni
Fanindra_Surat
Community Advisor
Community Advisor
March 24, 2022

Hi @balaram_rudra -

Do you mean, you have access to child-node-b1, child-node-b2 and want to search parent-node-a for the child nodes with propertyx-reference values uuid1 and uuid2, sorted by the name property?