// mapping/types/nested.asciidoc:58

[source, php]
----
$params = [
    'index' => 'my_index',
    'body' => [
        'query' => [
            'bool' => [
                'must' => [
                    [
                        'match' => [
                            'user.first' => 'Alice',
                        ],
                    ],
                    [
                        'match' => [
                            'user.last' => 'Smith',
                        ],
                    ],
                ],
            ],
        ],
    ],
];
$response = $client->search($params);
----
