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.
NodeRef categoria = null; StoreRef store = new StoreRef("workspace://SpacesStore"); SearchParameters sp1 = new SearchParameters(); sp1.addStore(store); sp1.setLanguage(SearchService.LANGUAGE_LUCENE); ResultSet results1 = null; ArrayList<NodeRef> categories = new ArrayList<NodeRef>(cat.length); for (int i = 0; i < cat.length; i++) { sp1.setQuery("+TYPE:\"cm:category\" +@cm\\:name:\""+cat[i] +"\" +PATH:\"/cm:generalclassifiable/cm:Ricerca_x0026_Sviluppo//*\""); System.out.println(sp1.getQuery()); (1) try { results1 = serviceRegistry.getSearchService().query(sp1); System.out.println("numero results: " +results1.length()); for(ResultSetRow row : results1) { categoria = row.getNodeRef(); System.out.println("Catego trovata: " + categoria.toString()); categories.add(categoria); } } finally { if(results1 != null) { results1.close(); } }