1// query-dsl/multi-match-query.asciidoc:275
2
3[source, php]
4----
5$params = [
6    'body' => [
7        'query' => [
8            'dis_max' => [
9                'queries' => [
10                    [
11                        'match_phrase_prefix' => [
12                            'subject' => 'quick brown f',
13                        ],
14                    ],
15                    [
16                        'match_phrase_prefix' => [
17                            'message' => 'quick brown f',
18                        ],
19                    ],
20                ],
21            ],
22        ],
23    ],
24];
25$response = $client->search($params);
26----
27