cancel
Showing results for 
Search instead for 
Did you mean: 

Lucene query to get a subset of the tree nodes

sergio
Champ in-the-making
Champ in-the-making
Hi all.

I have to represent as an XMLBeans class (according to an XML schema previously defined) a subset of the complete workspace/SpacesStore tree starting from a well defined node. The starting node is defined only by its id and not due to its complete path. In other words, I known its id but not its path.

Because at the moment it is not possible to get the path of the node using the getPath() method (it always returns a null value), I am not able to build a query path correctly.

In addition, I am not able to build the correct path using PATH Query for a node I always know its id.

I was not able to find an example that helps me.

Is there anyone who could give me any suggestions?

Thanks to all,

cheers,

Sergio
1 REPLY 1

cludt
Champ in-the-making
Champ in-the-making
Hi sergio,

maybe you don't have to use PATH in your query. Maybe you could also use PARENT:"workspace://SpacesStore/<id>"? You can fetch the name via the properties of the Node object that you must query as well (Node[] WebServiceFactory.getRepositoryService().get(predicate))

Best regards
  Christian