03-17-2010 07:53 PM
QueryResult qresult = repositoryService.query(spacesStore, query, true);
(last boolean parameter should mean that meta-information is included in the results) I only get the path in the ResultRows after usingResultSet results = qresult.getResultSet();
ResultSetRow[] rows = results.getRows();
Am I doing something wrong or is it possible that there is a bug?03-29-2010 05:24 PM
03-30-2010 04:38 AM
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.
03-30-2010 04:41 AM
03-30-2010 06:40 PM
04-06-2010 06:19 PM
04-06-2010 06:20 PM
06-28-2010 03:00 PM
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
02-03-2011 04:02 AM
Query query = new Query(QUERY_LANG_LUCENE, config.getQueryString());
Node[] nodes = repository.get(new Predicate(null, AlfrescoHelper.getDefaultStore(), query));
QueryResult qresult = repositoryService.query(spacesStore, query, true);
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.