为什么$和进入地图减少查询阶段不起作用?

时间:2013-10-12 18:22:15

标签: mongodb mapreduce

  $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个或更多字段的检查?

0 个答案:

没有答案