Skip to content

Is there a row limit? #33

Description

@Matias-Barrios

Hi Guys!,

Just wanted to know if this module has some kind of limit when searching for multiple nodes.
Im using partialSearch method and no matter what I do, I only get 1000 rows as response. Althoug when manually run "knife node list" on that environment, I get 1396 nodes, which is the right number of nodes I should be getting.

Can someone advise how to fix this?

Extract of code :

chef.config(SetOptions(environment));
        console.log("About to search for any servers ...");
        chef.partialSearch('node',
        {
        q: "name:*"

    },
         {
          name: ['name'] ,
         'ipaddress': ['ipaddress'] ,
         'chef_environment': ['chef_environment'] ,
         'ip6address': ['ip6address'],
         'run_list': ['run_list'],
         'chef_client': ['chef_client'],
         'ohai_time': ['ohai_time']

         }
        , function(err, chefRes) {

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions