# Range facets showing wrong matching records number

**URL:** <https://discuss.elastic.co/t/range-facets-showing-wrong-matching-records-number/11359>\
**Category:** Elasticsearch\
**Created:** [March 28, 2013, 2:34pm UTC](https://discuss.elastic.co/t/range-facets-showing-wrong-matching-records-number/11359 "2013-03-28T14:34:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rafik\_Naccache](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rafik_naccache/32/2415_2.png) [@Rafik\_Naccache](https://discuss.elastic.co/u/Rafik_Naccache)\
**Post date:** [March 28, 2013, 2:34pm UTC](https://discuss.elastic.co/t/range-facets-showing-wrong-matching-records-number/11359/1 "2013-03-28T14:34:42Z")

</div>

Dear all,

We are having issues with range facets : In fact, when issuing a query  
involving borders shown in range facets, we obtain different results.

suppose for a particular facet, say price, we have :

form 100 to 200 (30)  
from 201 to 300 (40)

IF I query on the range 100 to 200, I have a totally different number of  
repcords, say 35. This is by the way the actual number of records, it seems  
that range facets are showing wrong numbers.

Is this a known feature about range facets,or are we doing something wrong,  
like comparing Strings?

Best Regards,

Rafik

--  
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:** ![Rafik\_Naccache](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rafik_naccache/32/2415_2.png) [@Rafik\_Naccache](https://discuss.elastic.co/u/Rafik_Naccache)\
**Post date:** [March 28, 2013, 3:22pm UTC](https://discuss.elastic.co/t/range-facets-showing-wrong-matching-records-number/11359/2 "2013-03-28T15:22:59Z")

</div>

Dear all,

False positive, turns out that some of the records were setting price as  
string field,

Now everything works,

Regards

On Thursday, March 28, 2013 3:34:42 PM UTC+1, Rafik Naccache wrote:

> Dear all,
> 
> We are having issues with range facets : In fact, when issuing a query  
> involving borders shown in range facets, we obtain different results.
> 
> suppose for a particular facet, say price, we have :
> 
> form 100 to 200 (30)  
> from 201 to 300 (40)
> 
> IF I query on the range 100 to 200, I have a totally different number of  
> repcords, say 35. This is by the way the actual number of records, it seems  
> that range facets are showing wrong numbers.
> 
> Is this a known feature about range facets,or are we doing something  
> wrong, like comparing Strings?
> 
> Best Regards,
> 
> Rafik

--  
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:43am UTC](https://discuss.elastic.co/t/range-facets-showing-wrong-matching-records-number/11359/3 "2017-07-06T02:43:49Z")

</div>


