it would be better to use the string key definiton: `'search' => array('type' => 'value')` etc