how can I get an exact number of users with some attributes?
-
How can I get an exact number of users with some attributes? I'm using elasticsearch.
-
You want to use search parameters like those outlined in this sample script.
- use a key limited to
POSTon/api/user/search - set
accurateTotalon the request - set
numberOfResultsto1on the request
In the response, look at the
totalfield.This will let you get exact numbers while reducing load on your instance.
- use a key limited to
-
D dan has marked this topic as solved