# API limited search results

**URL:** <https://discuss.elastic.co/t/api-limited-search-results/258300>\
**Category:** Elasticsearch\
**Created:** [December 10, 2020, 3:18pm UTC](https://discuss.elastic.co/t/api-limited-search-results/258300 "2020-12-10T15:18:12Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![hohooss](https://avatars.discourse-cdn.com/v4/letter/h/eada6e/32.png) [@hohooss](https://discuss.elastic.co/u/hohooss)\
**Post date:** [December 10, 2020, 3:18pm UTC](https://discuss.elastic.co/t/api-limited-search-results/258300/1 "2020-12-10T15:18:13Z")

</div>

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:

```auto
  "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:

```auto
{
  "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.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [January 7, 2021, 3:18pm UTC](https://discuss.elastic.co/t/api-limited-search-results/258300/2 "2021-01-07T15:18:17Z")

</div>

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