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.
QueryResult qresult = repositoryService.query(spacesStore, query, true);
ResultSet results = qresult.getResultSet(); ResultSetRow[] rows = results.getRows();
What I was told to do (by Alfresco) is to get the node ids out of the result set, & do one-by-one lookups using the NodeService. I haven't been able to confirm that approach due to other problems.
Greetings!I just stumbled on this in another forum. Don't use query, use get, as in this snippet: RepositoryServiceSoapBindingStub repository = WebServiceFactory.getRepositoryService(); Query query = new Query(QUERY_LANG_LUCENE, config.getQueryString()); Node[] nodes = repository.get(new Predicate(null, AlfrescoHelper.getDefaultStore(), query));This approach works, nodes in the result array have all property values. Don't know what the performance impact might be, however.No clue about wrong samples, but quality/quantity of documentation seems to be a general problem for Alfresco. ;-}best,scott
Query query = new Query(QUERY_LANG_LUCENE, config.getQueryString()); Node[] nodes = repository.get(new Predicate(null, AlfrescoHelper.getDefaultStore(), query));