// query-dsl/function-score-query.asciidoc:241

[source, php]
----
$params = [
    'body' => [
        'query' => [
            'function_score' => [
                'random_score' => [
                    'seed' => 10,
                    'field' => '_seq_no',
                ],
            ],
        ],
    ],
];
$response = $client->search($params);
----
