1// query-dsl/multi-match-query.asciidoc:438 2 3[source, php] 4---- 5$params = [ 6 'body' => [ 7 'query' => [ 8 'bool' => [ 9 'should' => [ 10 [ 11 'multi_match' => [ 12 'query' => 'Will Smith', 13 'type' => 'cross_fields', 14 'fields' => [ 15 'first', 16 'last', 17 ], 18 'minimum_should_match' => '50%', 19 ], 20 ], 21 [ 22 'multi_match' => [ 23 'query' => 'Will Smith', 24 'type' => 'cross_fields', 25 'fields' => [ 26 '*.edge', 27 ], 28 ], 29 ], 30 ], 31 ], 32 ], 33 ], 34]; 35$response = $client->search($params); 36---- 37