AnsweredAssumed Answered

Find QName path from NodeRef for Lucene search (or Xpath search)

Question asked by leonardo.celati on Feb 3, 2015
Latest reply on Feb 5, 2015 by aleksczajka
Within a Java Action I have a known NodeRef, I need to retrieve its full parent QName path:

Which is, from this:

/app:company_home/st:sites/cm:mysite/cm:documentLibrary/cm:mydoc.pdf


I need:

/app:company_home/st:sites/cm:mysite/cm:documentLibrary


To build a Lucene query like this:


PATH:"/app:company_home/st:sites/cm:mysite/cm:documentLibrary//*" AND + @cm\:name:"someOtherNodeName"


Or the full XPath search.

Outcomes