我的地图功能
function(doc, meta) {
  emit([doc.city, doc.region], doc.id);
}
我的查询
?keys=[["New York", "Northeast"]]
这将发出:
{ 
  city: 'New York',
  region: Northeast
}
如果我想使用相同的地图功能仅从东北部获取那些城市,它将无法正常工作。有什么办法只匹配其中一个键吗?喜欢...
?keys=[[null, "Northeast"]]
并输出
[{ 
  city: 'New York',
  region: 'Northeast'
},
{
  city: 'Boston',
  region: 'Northeast'
}]