cancel
Showing results for 
Search instead for 
Did you mean: 

Javascript maximum result set query

patrickvanhoof
Confirmed Champ
Confirmed Champ

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 2

patrickvanhoof
Confirmed Champ
Confirmed Champ

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

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...