# ¿Expected results?

**URL:** <https://discuss.elastic.co/t/expected-results/3914>\
**Category:** Elasticsearch\
**Created:** [February 11, 2011, 2:10pm UTC](https://discuss.elastic.co/t/expected-results/3914 "2011-02-11T14:10:30Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Enrique\_Medina\_Monte](https://avatars.discourse-cdn.com/v4/letter/e/4491bb/32.png) [@Enrique\_Medina\_Monte](https://discuss.elastic.co/u/Enrique_Medina_Monte)\
**Post date:** [February 11, 2011, 2:10pm UTC](https://discuss.elastic.co/t/expected-results/3914/1 "2011-02-11T14:10:30Z")

</div>

Hi,

I just noticed an unexpected (IMHO) result when trying the following query:

> <https://gist.github.com/emedina/822390>

As it has no results, but it does have facets though, the result is:

> <https://gist.github.com/emedina/822392>

So my code interprets that there is actually 1 result, as total = 1. Is this  
expected behaviour or not?

Thanks.

---

<div class="post-metadata">

**Author:** ![kimchy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimchy/32/44952_2.png) [@kimchy](https://discuss.elastic.co/u/kimchy)\
**Post date:** [February 12, 2011, 3:27pm UTC](https://discuss.elastic.co/t/expected-results/3914/2 "2011-02-12T15:27:05Z")

</div>

You specify the from to be 1, from is 0 based, maybe thats the problem?  
On Friday, February 11, 2011 at 4:10 PM, Enrique Medina Montenegro wrote:

> Hi,
> 
> I just noticed an unexpected (IMHO) result when trying the following query:
> 
> [JSON query · GitHub](https://gist.github.com/822390)
> 
> As it has no results, but it does have facets though, the result is:
> 
> [Result JSON for ES query · GitHub](https://gist.github.com/822392)
> 
> So my code interprets that there is actually 1 result, as total = 1. Is this expected behaviour or not?
> 
> Thanks.

---

<div class="post-metadata">

**Author:** ![Enrique\_Medina\_Monte](https://avatars.discourse-cdn.com/v4/letter/e/4491bb/32.png) [@Enrique\_Medina\_Monte](https://discuss.elastic.co/u/Enrique_Medina_Monte)\
**Post date:** [February 14, 2011, 9:48am UTC](https://discuss.elastic.co/t/expected-results/3914/3 "2011-02-14T09:48:34Z")

</div>

Yeah, that was the issue. Gotcha on my side!!!

On Sat, Feb 12, 2011 at 4:27 PM, Shay Banon [shay.banon@elasticsearch.com](mailto:shay.banon@elasticsearch.com)wrote:

> You specify the from to be 1, from is 0 based, maybe thats the problem?
> 
> On Friday, February 11, 2011 at 4:10 PM, Enrique Medina Montenegro wrote:
> 
> Hi,
> 
> I just noticed an unexpected (IMHO) result when trying the following query:
> 
> [JSON query · GitHub](https://gist.github.com/822390)
> 
> As it has no results, but it does have facets though, the result is:
> 
> [Result JSON for ES query · GitHub](https://gist.github.com/822392)
> 
> So my code interprets that there is actually 1 result, as total = 1. Is  
> this expected behaviour or not?
> 
> Thanks.

---

<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, 4:12am UTC](https://discuss.elastic.co/t/expected-results/3914/4 "2017-07-06T04:12:08Z")

</div>

Closed on July 6, 2017, 4:12am UTC


