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

[source, php]
----
$params = [
    'body' => [
        'query' => [
            'function_score' => [
                'query' => [
                    'match_all' => [
                    ],
                ],
                'boost' => '5',
                'random_score' => [
                ],
                'boost_mode' => 'multiply',
            ],
        ],
    ],
];
$response = $client->search($params);
----
