getting NodeRef of dictionary without using lucene queries

cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
mhb
Active Member

getting NodeRef of dictionary without using lucene queries

Hello,

   How can i get the NodeRef of dictionary without using lucene queries?

2 Replies
afaust
Master

Re: getting NodeRef of dictionary without using lucene queries

Use the XPath based selectNodes operation to lookup nodes without requiring Lucene / SOLR.

janv
Senior Member II

Re: getting NodeRef of dictionary without using lucene queries

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