# PHP API : Hww to change the size or records returned

**URL:** https://discuss.elastic.co/t/php-api-hww-to-change-the-size-or-records-returned/18369
**Category:** Elasticsearch
**Created:** [June 27, 2014, 12:18pm UTC](https://discuss.elastic.co/t/php-api-hww-to-change-the-size-or-records-returned/18369 "2014-06-27T12:18:44Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Stefan\_Kruse\_2](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stefan_kruse_2/32/12005_2.png) [@Stefan\_Kruse\_2](https://discuss.elastic.co/u/Stefan_Kruse_2)
#### Post date: [June 27, 2014, 12:18pm UTC](https://discuss.elastic.co/t/php-api-hww-to-change-the-size-or-records-returned/18369/1 "2014-06-27T12:18:44Z")

</div>

Hi , is use the php module. How can i change the size of records are  
returned? Default is 10 but i need more. Is there a way? Thanks Stefan

--  
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/9fe2ea6e-b105-4b00-92b9-52d83ee3938c%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/9fe2ea6e-b105-4b00-92b9-52d83ee3938c%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

### Author: ![sri](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sri/32/60716_2.png) [@sri](https://discuss.elastic.co/u/sri)
#### Post date: [June 27, 2014, 3:41pm UTC](https://discuss.elastic.co/t/php-api-hww-to-change-the-size-or-records-returned/18369/2 "2014-06-27T15:41:11Z")

</div>

localost:9200/\_search?pretty\*&size=200\*

On Friday, June 27, 2014 8:18:44 AM UTC-4, Stefan Kruse wrote:

> Hi , is use the php module. How can i change the size of records are  
> returned? Default is 10 but i need more. Is there a way? Thanks Stefan

--  
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/5af30a05-d4fd-4dc3-a3d4-756dd73b2516%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/5af30a05-d4fd-4dc3-a3d4-756dd73b2516%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

### Author: ![polyfractal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/polyfractal/32/48162_2.png) [@polyfractal](https://discuss.elastic.co/u/polyfractal)
#### Post date: [July 1, 2014, 12:05pm UTC](https://discuss.elastic.co/t/php-api-hww-to-change-the-size-or-records-returned/18369/3 "2014-07-01T12:05:39Z")

</div>

You can also set it as a parameter in the body, just like a regular query:

$searchParams['index'] = 'my\_index';$searchParams['type'] = 'my\_type';$searchParams['body'] = [  
'query' =\> [  
'match' =\> [  
'test\_field' =\> 'abc'  
]  
],  
'size' =\> 20]  
$queryResponse = $client-\>search($searchParams);

-Zach

On Friday, June 27, 2014 8:18:44 AM UTC-4, Stefan Kruse wrote:

> Hi , is use the php module. How can i change the size of records are  
> returned? Default is 10 but i need more. Is there a way? Thanks Stefan

--  
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/dfa9664d-8f75-444c-b56e-8590bbfe2307%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/dfa9664d-8f75-444c-b56e-8590bbfe2307%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, 1:18am UTC](https://discuss.elastic.co/t/php-api-hww-to-change-the-size-or-records-returned/18369/4 "2017-07-06T01:18:42Z")

</div>


