# Can i implement pagination with 'discover:sampleSize'?

**URL:** https://discuss.elastic.co/t/can-i-implement-pagination-with-discover-samplesize/165957
**Category:** Kibana
**Created:** [January 28, 2019, 8:41am UTC](https://discuss.elastic.co/t/can-i-implement-pagination-with-discover-samplesize/165957 "2019-01-28T08:41:45Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![teemoGod](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/teemogod/32/40817_2.png) [@teemoGod](https://discuss.elastic.co/u/teemoGod)
#### Post date: [January 28, 2019, 8:41am UTC](https://discuss.elastic.co/t/can-i-implement-pagination-with-discover-samplesize/165957/1 "2019-01-28T08:41:45Z")

</div>

Hi. I'm using Kibana 6.4.1

I'm using Discover tab.

but there are lots of docuement.

so i configed Discover to get top 10 docs only.

there is 'discover:sampleSize' option so i configed this and working properly.

but sometimes i want to see next top 10 docs (11~20 sequence from top).

when i configed 'discover:sampleSize' option,  
Discover's pagination button was inactivated.

Can i activate pagination with 'discover:sampleSize' option In Discover?

---

<div class="post-metadata">

### Author: ![teemoGod](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/teemogod/32/40817_2.png) [@teemoGod](https://discuss.elastic.co/u/teemoGod)
#### Post date: [January 28, 2019, 8:54am UTC](https://discuss.elastic.co/t/can-i-implement-pagination-with-discover-samplesize/165957/2 "2019-01-28T08:54:06Z")

</div>

I understood 'discover:sampleSize' option.

Discover never query all of docs in index.

if i have 3,000,000 docs in A Index, Kibana do not give to me 3000000 docs.

if 'discover:sampleSize' has configed as '50',  
Kibana query 50 docs to ElasticSearch. but in Discover can see all of docs count.

so i confused.

if 'discover:sampleSize' configed as Default(500),  
i can using paging (50 docs per page) until 10 pages.

50 ('discover:sampleSize' as doc per page) x 10(pages) = 500 (docs)

---

<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: [February 25, 2019, 8:54am UTC](https://discuss.elastic.co/t/can-i-implement-pagination-with-discover-samplesize/165957/3 "2019-02-25T08:54:14Z")

</div>

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