06-21-2009 06:15 AM
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();
}
}
06-21-2009 09:21 AM
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.