I've manged to get my drupal instance pulling content back from Alfresco. However, I only seem to be able to retrieve a maximum of 10 records.

If I use SELECT * FROM cmis:document WHERE CONTAINS('alfresco') in CMIS Workbench it say there are 82 records, but using /cmis/query page I only get 10. Can anyone tell me how to fix this please?

Comments

surfingaround’s picture

Hi duthiega, I managed to solve this situation by tweaking "cmis_repository_wrapper.php". In the function called "query" at around line 586 there is the definition of

$default_hash_values = array(
          "includeAllowableActions" => "true",
          "searchAllVersions" => "false",
          "maxItems" => 10,
          "skipCount" => 0
        );

That "maxItems" is the number of results that a query returns. Change it and it will work.