# Facet count seems to be wrong ?!

**URL:** <https://discuss.elastic.co/t/facet-count-seems-to-be-wrong/6219>\
**Category:** Elasticsearch\
**Created:** [December 22, 2011, 1:32pm UTC](https://discuss.elastic.co/t/facet-count-seems-to-be-wrong/6219 "2011-12-22T13:32:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sebastien\_Charrier](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sebastien_charrier/32/2835_2.png) [@Sebastien\_Charrier](https://discuss.elastic.co/u/Sebastien_Charrier)\
**Post date:** [December 22, 2011, 1:32pm UTC](https://discuss.elastic.co/t/facet-count-seems-to-be-wrong/6219/1 "2011-12-22T13:32:52Z")

</div>

Hi everybody,

I am having a problem with facets count (a more simple case than  
yesterday :p).

A facet count in a match\_all query is smaller than the same count with  
a query\_string param. I can't explain why to my customer, as I can't  
explain it to me !! 😛

Here is the case : [https://gist.github.com/b88b5a82c879eeef8739](https://gist.github.com/b88b5a82c879eeef8739)

Two questions :

- is there cases where it could arrive ? (match\_all count \< query  
count)
- if not (and I think it cannot), what's the best way to understand  
what's happening ?

Thanks,  
Sebastien

---

<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 6, 2017, 3:44am UTC](https://discuss.elastic.co/t/facet-count-seems-to-be-wrong/6219/2 "2017-07-06T03:44:35Z")

</div>


