GET returns only 10000 documents

hello,
i have the following:

GET /analytics-staging-2019.02.*/_search
{
  "size": 0
}

i have specified size but this is still returning only:

{
  "took" : 7,
  "timed_out" : false,
  "_shards" : {
    "total" : 150,
    "successful" : 150,
    "skipped" : 0,
    "failed" : 0
  },
  "hits" : {
    "total" : {
      "value" : 10000,
      "relation" : "gte"
    },
    "max_score" : null,
    "hits" : [ ]
  }
}

i want to get a total number of documents.

any advice is much appreciated

run:

GET /analytics-staging-2019.02.*/_search?track_total_hits=true
{
  "size": 0
}

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.