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 [email protected].
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.