# Cardinality and precision\_threshold

**URL:** <https://discuss.elastic.co/t/cardinality-and-precision-threshold/73674>\
**Category:** Elasticsearch\
**Created:** [February 2, 2017, 12:30pm UTC](https://discuss.elastic.co/t/cardinality-and-precision-threshold/73674 "2017-02-02T12:30:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![liorg2](https://avatars.discourse-cdn.com/v4/letter/l/ed8c4c/32.png) [@liorg2](https://discuss.elastic.co/u/liorg2)\
**Post date:** [February 2, 2017, 12:30pm UTC](https://discuss.elastic.co/t/cardinality-and-precision-threshold/73674/1 "2017-02-02T12:30:05Z")

</div>

can someone please explain the precision\_threshold parameter?  
when reading the explanation, I understand it as "number of values that elastic will calculate accurately".

the documentation says that the default is 3000, but I've noticed that I can get wrong values, when looking for uniqe users count, even where there are 20 documents in the filtered result.

what am I missing here?

thanks

---

<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:** [March 2, 2017, 12:30pm UTC](https://discuss.elastic.co/t/cardinality-and-precision-threshold/73674/2 "2017-03-02T12:30:29Z")

</div>

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