# Query seems to ignore size / from parameters

**URL:** https://discuss.elastic.co/t/query-seems-to-ignore-size-from-parameters/61422
**Category:** Elasticsearch
**Created:** [September 23, 2016, 9:27pm UTC](https://discuss.elastic.co/t/query-seems-to-ignore-size-from-parameters/61422 "2016-09-23T21:27:49Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![pieterdt](https://avatars.discourse-cdn.com/v4/letter/p/87869e/32.png) [@pieterdt](https://discuss.elastic.co/u/pieterdt)
#### Post date: [September 23, 2016, 9:27pm UTC](https://discuss.elastic.co/t/query-seems-to-ignore-size-from-parameters/61422/1 "2016-09-23T21:27:50Z")

</div>

Hi,

I'm fairly new to ES and loving it. Recently I had to build a query, which seems to work. However, when the query is provided with size/from parameters for paging purposes, these parameters seems to be ignored completely.

The query can be seen here: [https://gist.github.com/pieterdt/4c6c1450a17954ff32055f0eb654d081](https://gist.github.com/pieterdt/4c6c1450a17954ff32055f0eb654d081)

I'm really puzzled, and don't understand enough why it would not respect the pagination parameters.

Does anyone have suggestions on why this happens or how I could rework my query?

Thanks

Pieter

---

<div class="post-metadata">

### Author: ![nik9000](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nik9000/32/44947_2.png) [@nik9000](https://discuss.elastic.co/u/nik9000)
#### Post date: [September 24, 2016, 1:58am UTC](https://discuss.elastic.co/t/query-seems-to-ignore-size-from-parameters/61422/2 "2016-09-24T01:58:55Z")

</div>

I always stick from and size on the URL rather than in the query body. I'm  
on mobile, else I'd look it up. Either way, moving those parameters to the  
URL ought to work.

---

<div class="post-metadata">

### Author: ![pieterdt](https://avatars.discourse-cdn.com/v4/letter/p/87869e/32.png) [@pieterdt](https://discuss.elastic.co/u/pieterdt)
#### Post date: [September 24, 2016, 9:39pm UTC](https://discuss.elastic.co/t/query-seems-to-ignore-size-from-parameters/61422/3 "2016-09-24T21:39:44Z")

</div>

thanks, this did the trick!

---

<div class="post-metadata">

### Author: ![lukas\_vlcek](https://avatars.discourse-cdn.com/v4/letter/l/dfb087/32.png) [@lukas\_vlcek](https://discuss.elastic.co/u/lukas_vlcek)
#### Post date: [September 25, 2016, 10:07am UTC](https://discuss.elastic.co/t/query-seems-to-ignore-size-from-parameters/61422/4 "2016-09-25T10:07:39Z")

</div>

Can this be a bug then? Did you consider opening a ticket? Are you able to reproduce with some small set of testing data?

---

<div class="post-metadata">

### Author: ![pieterdt](https://avatars.discourse-cdn.com/v4/letter/p/87869e/32.png) [@pieterdt](https://discuss.elastic.co/u/pieterdt)
#### Post date: [September 27, 2016, 10:44pm UTC](https://discuss.elastic.co/t/query-seems-to-ignore-size-from-parameters/61422/5 "2016-09-27T22:44:47Z")

</div>

Seems a bug to me indeed.

---

<div class="post-metadata">

### Author: ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)
#### Post date: [September 28, 2016, 1:01am UTC](https://discuss.elastic.co/t/query-seems-to-ignore-size-from-parameters/61422/6 "2016-09-28T01:01:38Z")

</div>

Can you first try with size: 0?  
I'm always using that in demos and it's working well.  
Could you reproduce with a full script?

---

<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 5, 2017, 10:16pm UTC](https://discuss.elastic.co/t/query-seems-to-ignore-size-from-parameters/61422/7 "2017-07-05T22:16:48Z")

</div>


