# Limit the number of search result in a dashboard

**URL:** https://discuss.elastic.co/t/limit-the-number-of-search-result-in-a-dashboard/85568
**Category:** Kibana
**Created:** [May 12, 2017, 1:05pm UTC](https://discuss.elastic.co/t/limit-the-number-of-search-result-in-a-dashboard/85568 "2017-05-12T13:05:42Z")
**Posts on this page:** 1
**Showing post:** 8

<div class="post-metadata">

### Author: ![Marius\_Dragomir](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/marius_dragomir/32/42087_2.png) [@Marius\_Dragomir](https://discuss.elastic.co/u/Marius_Dragomir)
#### Post date: [May 12, 2017, 3:10pm UTC](https://discuss.elastic.co/t/limit-the-number-of-search-result-in-a-dashboard/85568/8 "2017-05-12T15:10:45Z")

</div>

I think I may have found the problem. I still had the `discover:sampleSize` set.  
The behavior looks like this: that setting isn't taken in account in the dashboard, unless you have the `size` field inside your saved object. So for the workaround to work for you, you need to set both limits: the size inside the the object and the advanced setting (which is the one whose number is taken into account).

I had added an issue on the Kibana repo and I'll update it with this new information. [https://github.com/elastic/kibana/issues/11758](https://github.com/elastic/kibana/issues/11758)

---

_[View the full topic](https://discuss.elastic.co/t/limit-the-number-of-search-result-in-a-dashboard/85568)._
