Javascript maximum result set query

cancel
Showing results for 
Search instead for 
Did you mean: 
patrickvanhoof
Customer

Javascript maximum result set query

Hi,

I have in a script following code:

nodes = search.query({
        language: 'fts-alfresco',
        query: 'PARENT:"workspace://SpacesStore/8802c714-55e1-4b03-aa93-aa01d1a71a23"'
});
    
for (i = 0; i < nodes.length; i++) {
        if (String(nodeName) == String(nodes[i].name)) {

            .....

      }

}

It seems like the query does not return me all children of the folder that was returned. Not sure how I should get all children objects.

Any help appreciated.

Thanks,

Patrick

2 Replies
patrickvanhoof
Customer

Re: Javascript maximum result set query

Looks like the limit is 1000. Adding "maxItems: 2000" to the query does not help...

douglascrp
Advanced II

Re: Javascript maximum result set query

Hello.

Yes, that is right... 1000 is the default number for max results when using search.

That can be changed, but you should not be doing so, as increasing that number too much can cause troubles related with resources usage.

Instead of trying to increase that, you can try to use one of the approaches presented from the page 28 from this document https://www.alfresco.com/cmis/browser?id=workspace%3A//SpacesStore/a9c2fb15-6f86-4122-8be0-34c4955d8...