$params = array(
"mapreduce" => "company_details_2_copy",
"map" => $map,
"reduce" => $reduce,
现在在下面,在查询阶段$并且无法正常工作时说: $和expression必须是非空数组。
"query" =>
array(
'$and' =>
array(
"director_details.Person.Forename" =>new MongoRegex('/Mak/i'),
"director_details.Person.Surname" =>new MongoRegex('/ashtekar/i')
)
),
"out" => Array("inline" => TRUE)
);
地图&减少 功能所以不要担心......
问题是我如何使用$并在Map Reduce Query中查看2个或更多字段的检查?