PHP API : Hww to change the size or records returned

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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/9fe2ea6e-b105-4b00-92b9-52d83ee3938c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/5af30a05-d4fd-4dc3-a3d4-756dd73b2516%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/dfa9664d-8f75-444c-b56e-8590bbfe2307%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.