# Inconsistent term counts with facet

**URL:** https://discuss.elastic.co/t/inconsistent-term-counts-with-facet/5431
**Category:** Elasticsearch
**Created:** [September 22, 2011, 2:08am UTC](https://discuss.elastic.co/t/inconsistent-term-counts-with-facet/5431 "2011-09-22T02:08:22Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![byuva](https://avatars.discourse-cdn.com/v4/letter/b/b5ac83/32.png) [@byuva](https://discuss.elastic.co/u/byuva)
#### Post date: [September 22, 2011, 2:08am UTC](https://discuss.elastic.co/t/inconsistent-term-counts-with-facet/5431/1 "2011-09-22T02:08:22Z")

</div>

I note that consecutive and identical calls to facet will often return  
different term counts. Not all terms vary and the ones that do often  
seem to flip back and forth between two values. I've set the facet  
size to 100 (and am only using the top 20 per another post indicating  
facets\*shards=size) and am running 0.17.7. I haven't yet recreated  
this with Curl but thought I would inquire if there was any known  
reason this should be happening first.

---

<div class="post-metadata">

### Author: ![byuva](https://avatars.discourse-cdn.com/v4/letter/b/b5ac83/32.png) [@byuva](https://discuss.elastic.co/u/byuva)
#### Post date: [September 22, 2011, 2:19am UTC](https://discuss.elastic.co/t/inconsistent-term-counts-with-facet/5431/2 "2011-09-22T02:19:36Z")

</div>

I've noted one additional odd behavior. The string "tTerm" sometimes  
shows up in my facets despite this term not actually existing as a  
term for that field.

On Sep 21, 10:08 pm, merrellb [br...@merrells.org](mailto:br...@merrells.org) wrote:

> I note that consecutive and identical calls to facet will often return  
> different term counts. Not all terms vary and the ones that do often  
> seem to flip back and forth between two values. I've set the facet  
> size to 100 (and am only using the top 20 per another post indicating  
> facets\*shards=size) and am running 0.17.7. I haven't yet recreated  
> this with Curl but thought I would inquire if there was any known  
> reason this should be happening first.

---

<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:53am UTC](https://discuss.elastic.co/t/inconsistent-term-counts-with-facet/5431/3 "2017-07-06T03:53:52Z")

</div>


