1// getting-started.asciidoc:512 2 3[source, php] 4---- 5$params = [ 6 'index' => 'bank', 7 'body' => [ 8 'query' => [ 9 'bool' => [ 10 'must' => [ 11 [ 12 'match' => [ 13 'age' => '40', 14 ], 15 ], 16 ], 17 'must_not' => [ 18 [ 19 'match' => [ 20 'state' => 'ID', 21 ], 22 ], 23 ], 24 ], 25 ], 26 ], 27]; 28$response = $client->search($params); 29---- 30