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.
… SearchParameters sp = new SearchParameters(); sp.addStore(getStoreRef()); sp.setLanguage(SearchService.LANGUAGE_LUCENE); sp.setQuery("PATH:\"//.\""); sp.addSort("ID", true); ResultSet results = null; try { results = serviceRegistry.getSearchService().query(sp); for(ResultSetRow row : results) { NodeRef currentNodeRef = row.getNodeRef(); … } } finally { if(results != null) { results.close(); } } …
* Sorting is based in Java string ordering * This is not so good for numeric data * We treat numeric and date information so it does order lexically. * Tokenising and sort can give odd results or fail * You can only order with one locale.
The main advantage is that allows you to have Liferay and Alfresco in different machines, which is very positive, as they are heavy applications. The main disadvantage is that Web Services is quite slow.