FusionAuth
    • Home
    • Categories
    • Recent
    • Popular
    • Pricing
    • Contact us
    • Docs
    • Login

    FusionAuth SDK searchuser method problem

    Scheduled Pinned Locked Moved
    General Discussion
    0
    2
    137
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • A
      adrian.wild
      last edited by adrian.wild

      I found out the problem. I have over 8000 users in my DB. I wanted to take them all by

      $arrayOfParameters = array(
          'search' => array(
              'queryString' => '*',
              'numberOfResults' => 1000,
              'startRow' => 0, // Then 1000...2000...3000
              'accurateTotal' => true
          ),
      );
      $client->searchUsersByQuery($arrayOfParameters);
      

      And when i go with this logic of increasing the startRow value then i see:

      int(26)
      int(787)
      int(353)
      int(806)
      int(596)
      int(435)
      int(997)
      int(23)
      int(5023)
      

      This is call by call (in foreach) count result how many users i get (I always increase startRow by 1000). So why on the end i get different numbers of users? If once is possible to get 1000 why not always?

      Does anyone had this problem before?

      1 Reply Last reply Reply Quote 0
      • danD
        dan
        last edited by

        Hiya @adrian-wild

        To confirm, you are using the elastic search search engine?

        And the numbers in the list you provided are the number of results you get?

        --
        FusionAuth - Auth for devs, built by devs.
        https://fusionauth.io

        1 Reply Last reply Reply Quote 0
        • First post
          Last post