# What determines a fact count / how can I manipulate it

**URL:** https://discuss.elastic.co/t/what-determines-a-fact-count-how-can-i-manipulate-it/15408
**Category:** Elasticsearch
**Created:** [January 24, 2014, 8:08pm UTC](https://discuss.elastic.co/t/what-determines-a-fact-count-how-can-i-manipulate-it/15408 "2014-01-24T20:08:03Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Quinn\_Shanahan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/quinn_shanahan/32/1844_2.png) [@Quinn\_Shanahan](https://discuss.elastic.co/u/Quinn_Shanahan)
#### Post date: [January 24, 2014, 8:08pm UTC](https://discuss.elastic.co/t/what-determines-a-fact-count-how-can-i-manipulate-it/15408/1 "2014-01-24T20:08:03Z")

</div>

Hi, I have multiple term filters / facet counts right now that my users can  
filter with. Both term lists do OR filters when selecting multiple terms of  
the same field (using term / should in elasticsearch), but the seperate  
term filters reduce as they are selected i.e. selecting categories X and Z  
and tag Y show things that are either of category X or Z, but also have tag  
Y. But the facet counts don't reduce to match the filters in the other  
field, so that if category X is selected, and there are 0 things tagged  
with Y that also have category X, the facet count for Y displays the number  
it did before category X was selected rather than 0. How can I inform the  
facet counts that the category filter is present? I'm assuming there must  
be a way to manipulate how the numbers are calculated.

Quinn

--  
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).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/4db24e65-785d-4f14-8d8f-49272a912a13%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/4db24e65-785d-4f14-8d8f-49272a912a13%40googlegroups.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, 1:54am UTC](https://discuss.elastic.co/t/what-determines-a-fact-count-how-can-i-manipulate-it/15408/2 "2017-07-06T01:54:53Z")

</div>


