getting NodeRef of dictionary without using lucene queries

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-04-2016 06:43 AM
Hello,
How can i get the NodeRef of dictionary without using lucene queries?
- Labels:
-
Archive
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-04-2016 09:30 AM
Use the XPath based selectNodes operation to lookup nodes without requiring Lucene / SOLR.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-04-2016 12:54 PM
If you're referring to the "Data Dictionary" node, then as Axel says ... some Java examples (untested):
...
NodeRef storeRootNodeRef = nodeService.getRootNode(new StoreRef("workspace://SpacesStore"));
NodeRef ddNodeRef = searchService.selectNodes(storeRootNodeRef, "/app:company_home/app:dictionary", null, namespaceService, false).get(0);
or
...
NodeRef ddNodeRef = searchService.selectNodes(repositoryHelper.getCompanyHome(), "/app:dictionary", null, namespaceService, false).get(0);
Regards,
Jan
