cancel
Showing results for 
Search instead for 
Did you mean: 

Cannot retrieve a large number of nodes at once

robertito
Champ in-the-making
Champ in-the-making
Hi to all,

when I'm executing a lucene search (using SearchService) or a getChildrenAssocs method, and I have around more than 1000 nodes in a space, it is not possible for me to get all the nodes at once. It is like the results are accessed step by step (after 3 or 4 executions, all the results are retrieved). I'm doing some tests and I'm allways accessing as 'admin'.
Is there something that can be configured so this doesn't happen?
I'm using Alfresco 3.0.0 (a 1032) schema 128

Thank you very much,
Robert
1 REPLY 1

zomurn
Champ in-the-making
Champ in-the-making
To get all documents of a certain type :

public List<NodeRef> getDocumentList(QName pType) {

      MscValidateUtil.validateNotNull( pType );

      ResultSet lResultSet = searchService.query(
            MscStoreEnum.WORKSPACE_SPACES_STORE.getStoreRef(),
            SearchService.LANGUAGE_LUCENE, "TYPE:\"" + pType + "\"" );
      lResultSet.getResultSetMetaData().getSearchParameters().setLimitBy(
            LimitBy.UNLIMITED );

      return lResultSet.getNodeRefs();
   }