Lucene query to get a subset of the tree nodes
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-05-2006 10:25 AM
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
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
Labels:
- Labels:
-
Archive
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-23-2007 10:23 AM
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
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
