# Loss of count accuracy for term facets

**URL:** https://discuss.elastic.co/t/loss-of-count-accuracy-for-term-facets/14536
**Category:** Elasticsearch
**Created:** [November 22, 2013, 7:18am UTC](https://discuss.elastic.co/t/loss-of-count-accuracy-for-term-facets/14536 "2013-11-22T07:18:51Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![vineeth\_mohan\_2](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vineeth_mohan_2/32/747_2.png) [@vineeth\_mohan\_2](https://discuss.elastic.co/u/vineeth_mohan_2)
#### Post date: [November 22, 2013, 7:18am UTC](https://discuss.elastic.co/t/loss-of-count-accuracy-for-term-facets/14536/1 "2013-11-22T07:18:51Z")

</div>

Hi ,

On applying term facets to a field called page with query\_string query as  
query:\* gives me -

- {
  - term: 10628
  - count: 64  
}

- 

On applying term facets to a field called page with terms query as page:[  
10628 ] gives me -

- {
  - term: 10629
  - count: 100  
}

I tried increasing shard size as follows

"facets": {  
"terms": {  
"terms": {  
"shard\_size": 100000000,  
"field": "page"  
}  
}  
}

Still no change.

What could be the reason of this discrepancy. Only weird thing i did was to  
index some of the feeds again with the same ID using bulk index. But then ,  
it should be fine.

- 

ES details -

- number: 0.90.5
- build\_hash: c8714e8e0620b62638f660f6144831792b9dedee
- build\_timestamp: 2013-09-17T12:50:20Z
- build\_snapshot: false
- lucene\_version: 4.4

Thanks  
Vineeth

- 

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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, 2:05am UTC](https://discuss.elastic.co/t/loss-of-count-accuracy-for-term-facets/14536/2 "2017-07-06T02:05:28Z")

</div>


