02-14-2010 08:45 AM
03-12-2010 06:31 AM
03-18-2010 07:31 AM
//Impostazione della directory radice della ricerca all'interno dello spazio di lavoro di Alfresco
query.append("PATH:\"/" + spaceStoreNodePath);
query.append(ricDoc.isRicercaInSottospazi() ? "//*\" " : "/*\" ");
….
….
…
if( ricDoc.isRicercaInSottocategorie() ){
//fuzione ricorsiva che gestisce l'albero delle categorie
query.append("&& PATH:\\\"/cm:categories:" + alfrescoCore.getStoreRef().toString() + "/" + ricDoc.getUuidCategoria() + "/*\"");
}else{
query.append("&& @cm\\:categories:\"" + alfrescoCore.getStoreRef().toString() + "/" + ricDoc.getUuidCategoria() + "\" ");
}
….
….
….
SearchParameters sp = new SearchParameters();
sp.addStore(new StoreRef(StoreRef.PROTOCOL_WORKSPACE, "SpacesStore"));
sp.setLanguage(SearchService.LANGUAGE_LUCENE);
org.alfresco.service.cmr.search.ResultSet results = null;
sp.setBulkFetchSize(20);
sp.setQuery(query);
results = alfrescoServiceRegistry.getSearchService().query(sp);
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.