# @Query annotation how to pass size

**URL:** <https://discuss.elastic.co/t/query-annotation-how-to-pass-size/148365>\
**Category:** Elasticsearch\
**Created:** [September 12, 2018, 6:00pm UTC](https://discuss.elastic.co/t/query-annotation-how-to-pass-size/148365 "2018-09-12T18:00:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![chandra0651](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/chandra0651/32/30484_2.png) [@chandra0651](https://discuss.elastic.co/u/chandra0651)\
**Post date:** [September 12, 2018, 6:00pm UTC](https://discuss.elastic.co/t/query-annotation-how-to-pass-size/148365/1 "2018-09-12T18:00:41Z")

</div>

Hello I am using @Query parameter in the spring data repository class to query the elastic search but by default it is giving me back only top ten records is there a way where i can pass "size" along with the query

---

<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:** [October 10, 2018, 6:00pm UTC](https://discuss.elastic.co/t/query-annotation-how-to-pass-size/148365/2 "2018-10-10T18:00:50Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
