Hi,
I need to search a node in my Alfresco repository, with the Alfresco Java API. I have a initial path where I must begin to search, and a property value to find.
My repository will be big, because of this, I need the search quick and efficient.
There are various methods to implement this search. For example, SearchService have these ones: selectNodes and query.
getSearchService().selectNodes(root, path, null, this.serviceRegistry.getNamespaceService(), false);
getSearchService().query(WORKSPACE_SPACESSTORE, SearchService.LANGUAGE_LUCENE, query);
Use the SearchService are a good idea? Better others? And which one is better, selectNodes or query? Do you know the difference?.
Thanks!