As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
Hello,
How can i get the NodeRef of dictionary without using lucene queries?
Use the XPath based selectNodes operation to lookup nodes without requiring Lucene / SOLR.
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);
...
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);
NodeRef ddNodeRef = searchService.selectNodes(repositoryHelper.getCompanyHome(), "/app:dictionary", null, namespaceService, false).get(0);
Regards,
Jan