// search/request/from-size.asciidoc:22

[source, php]
----
$params = [
    'body' => [
        'from' => 5,
        'size' => 20,
        'query' => [
            'term' => [
                'user.id' => '8a4f500d',
            ],
        ],
    ],
];
$response = $client->search($params);
----
