API limited search results

Hello,

I trying to do an elasticsearch API call that will retrieve results more than 200,000 hits, as it was confirmed by Kibana GUI search, but I always get the following message, i.e. 10000 hits:

  "took": 102,
  "timed_out": false,
  "_shards": {
    "total": 304,
    "successful": 304,
    "skipped": 286,
    "failed": 0
  },
  "hits": {
    "total": {
      "value": 10000,
      "relation": "gte"
    },
    "max_score": 2.2309928,
    "hits": [
      {

My query is show below:

{
  "query": {
    "bool": {
      "must": [
        {
          "match_phrase": {
            "docker.cluster": {
              "query": "stage-cluster"
            }
          }
        },
        {
          "match_phrase": {
            "docker-name": {
              "query": "stage-app"
            }
          }
        },
        {
          "range": {
            "@timestamp": {
              "format": "strict_date_optional_time",
              "gte": "2020-12-09T22:30:00.000Z",
              "lte": "2020-12-09T23:30:00.000Z"
            }
          }
        }
      ],
      "filter": [
        {
          "bool": {
            "should": [
              {
                "query_string": {
                  "fields": [
                    "Response"
                  ],
                  "query": "*errorCode\\\"\\:\\4\\0\\0*"
                }
              }
            ],
            "minimum_should_match": 1
          }
        }
      ],
      "should": [],
      "must_not": []
    }
  }
}
' | jq '.hits.total.value'

how can I get all hits that are gathered by this query ?
thank you.

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