# Get query is showing only 10 results while searching for a particular data

**URL:** <https://discuss.elastic.co/t/get-query-is-showing-only-10-results-while-searching-for-a-particular-data/88187>\
**Category:** Elasticsearch\
**Created:** [June 4, 2017, 12:36pm UTC](https://discuss.elastic.co/t/get-query-is-showing-only-10-results-while-searching-for-a-particular-data/88187 "2017-06-04T12:36:17Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ajoealex](https://avatars.discourse-cdn.com/v4/letter/a/45deac/32.png) [@ajoealex](https://discuss.elastic.co/u/ajoealex)\
**Post date:** [June 4, 2017, 12:36pm UTC](https://discuss.elastic.co/t/get-query-is-showing-only-10-results-while-searching-for-a-particular-data/88187/1 "2017-06-04T12:36:18Z")

</div>

I have indexed my email and trying to get the values of all senders email address.  
I used

```
   Get exchangemails/email/_search?_source=sender

```

This returns

```
 {
  "took": 3,
"timed_out": false,
"_shards": {
  "total": 1,
  "successful": 1,
  "failed": 0
},
"hits": {
  "total": 21,
  "max_score": 1,
  "hits": [
     {
        "_index": "exchangemails",
        "_type": "email",
        "_id": "AVxyx7bddd6P8H4c9eLT",
        "_score": 1,
        "_source": {
           "sender": "abc@gmail.com"
        }
     },
.....
{
        "_index": "exchangemails",
        "_type": "email",
        "_id": "AVxyx1vZ6P8H4c9b6eJu",
        "_score": 1,
        "_source": {
           "sender": "xyz@gmail.com"
        }
     }
  ]
}
}

```

The hits total count is correct but it returns only 10 results

What is the issue here...

---

<div class="post-metadata">

**Author:** ![ogtool](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ogtool/32/18767_2.png) [@ogtool](https://discuss.elastic.co/u/ogtool)\
**Post date:** [June 4, 2017, 5:44pm UTC](https://discuss.elastic.co/t/get-query-is-showing-only-10-results-while-searching-for-a-particular-data/88187/2 "2017-06-04T17:44:38Z")

</div>

The default size parameter (number of records actually returned) is 10 - [https://www.elastic.co/guide/en/elasticsearch/reference/current/search-request-from-size.html](https://www.elastic.co/guide/en/elasticsearch/reference/current/search-request-from-size.html)

If you change your query to GET exchangemails/email/\_search?\_source=sender&size=50 then you'll get 50 records.

/exchangemails/email/\_search?\_source=sender&from=50&size=50 will then get the next "page" of results.

The max supported value for size is 10,000, and while this can be changed system wide, utilizing scroll ([https://www.elastic.co/guide/en/elasticsearch/reference/current/search-request-scroll.html](https://www.elastic.co/guide/en/elasticsearch/reference/current/search-request-scroll.html)) or search after ([https://www.elastic.co/guide/en/elasticsearch/reference/current/search-request-search-after.html](https://www.elastic.co/guide/en/elasticsearch/reference/current/search-request-search-after.html)) are generally accepted as better solutions

---

<div class="post-metadata">

**Author:** ![ajoealex](https://avatars.discourse-cdn.com/v4/letter/a/45deac/32.png) [@ajoealex](https://discuss.elastic.co/u/ajoealex)\
**Post date:** [June 5, 2017, 4:31am UTC](https://discuss.elastic.co/t/get-query-is-showing-only-10-results-while-searching-for-a-particular-data/88187/3 "2017-06-05T04:31:01Z")

</div>

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:** [July 3, 2017, 4:31am UTC](https://discuss.elastic.co/t/get-query-is-showing-only-10-results-while-searching-for-a-particular-data/88187/4 "2017-07-03T04:31:25Z")

</div>

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