# Is it possible to set the precision\_threshold for an entire index?

**URL:** <https://discuss.elastic.co/t/is-it-possible-to-set-the-precision-threshold-for-an-entire-index/160973>\
**Category:** Elasticsearch\
**Created:** [December 14, 2018, 9:34pm UTC](https://discuss.elastic.co/t/is-it-possible-to-set-the-precision-threshold-for-an-entire-index/160973 "2018-12-14T21:34:48Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Matt\_Vasquez](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/matt_vasquez/32/22088_2.png) [@Matt\_Vasquez](https://discuss.elastic.co/u/Matt_Vasquez)\
**Post date:** [December 14, 2018, 9:34pm UTC](https://discuss.elastic.co/t/is-it-possible-to-set-the-precision-threshold-for-an-entire-index/160973/1 "2018-12-14T21:34:49Z")

</div>

I am using Elastic Stack for Business Intelligence purposes, because of this I need absolute accuracy. I know I can apply the precision\_threshold on a individual basis, but is there a way to provide the precision\_threshold globally for a particular index?

The index I am working with is only 30mb so I think the `cardinality` aggregation is a bit overkill for such a small sized index and seems to be really designed for big data use.

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [December 14, 2018, 10:10pm UTC](https://discuss.elastic.co/t/is-it-possible-to-set-the-precision-threshold-for-an-entire-index/160973/2 "2018-12-14T22:10:47Z")

</div>

If you have a single index that is that small, make sure it has a single primary shard and results should be accurate.

---

<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 11, 2019, 10:10pm UTC](https://discuss.elastic.co/t/is-it-possible-to-set-the-precision-threshold-for-an-entire-index/160973/3 "2019-01-11T22:10:49Z")

</div>

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