【发布时间】:2013-03-25 19:19:43
【问题描述】:
我的地图功能
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'
}]
【问题讨论】:
标签: couchbase