# PHP SDK - "size" problem

**URL:** <https://discuss.elastic.co/t/php-sdk-size-problem/21536>\
**Category:** Elasticsearch\
**Created:** [January 8, 2015, 10:17am UTC](https://discuss.elastic.co/t/php-sdk-size-problem/21536 "2015-01-08T10:17:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Svetlozar\_Penev](https://avatars.discourse-cdn.com/v4/letter/s/8edcca/32.png) [@Svetlozar\_Penev](https://discuss.elastic.co/u/Svetlozar_Penev)\
**Post date:** [January 8, 2015, 10:17am UTC](https://discuss.elastic.co/t/php-sdk-size-problem/21536/1 "2015-01-08T10:17:10Z")

</div>

Hello,

I want query to return me 15 results.

This is my code:  
$params = array();  
$params['body']["size"] = 15;  
$params['body']['query']['match']["country"] = 53;  
$results = $client-\>search($params);

and response:  
_Error 500 transfer closed with 33476 bytes remaining to read_

I spent a lot of hours of debugging and I really need help.

--  
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/6b84beab-5307-42f6-b360-a91fced2addc%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/6b84beab-5307-42f6-b360-a91fced2addc%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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, 12:40am UTC](https://discuss.elastic.co/t/php-sdk-size-problem/21536/2 "2017-07-06T00:40:06Z")

</div>

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


