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

[source, php]
----
$params = [
    'body' => [
        'query' => [
            'function_score' => [
                'field_value_factor' => [
                    'field' => 'likes',
                    'factor' => 1.2,
                    'modifier' => 'sqrt',
                    'missing' => 1,
                ],
            ],
        ],
    ],
];
$response = $client->search($params);
----
