// query-dsl/match-query.asciidoc:18

[source, php]
----
$params = [
    'body' => [
        'query' => [
            'match' => [
                'message' => [
                    'query' => 'this is a test',
                ],
            ],
        ],
    ],
];
$response = $client->search($params);
----
