這是我的JSON數據如何應用過濾器Couchbase Server中使用C#
{
"_id":"biking",
"_rev":"AE19EBC7654",
"type":"user",
"body":"My biggest hobby is mountainbiking. The other day...",
"date":"2009/01/30 18:04:11"
}
{
"_id":"biking",
"_rev":"AE19EBC7654",
"type":"testuser",
"body":"My biggest hobby is mountainbiking. The other day...",
"date":"2009/01/30 18:04:11"
}
這裏是什麼是迄今爲止
var pull = _db.CreatePullReplication(syncGatewayUri);
var push = _db.CreatePushReplication(syncGatewayUri);
_db.SetFilter("byUser", (revision, filterParams) =>
{
var typeParam = filterParams["type"].ToString();
return (typeParam != null) && typeParam.Equals("USer");
});
pull.Filter ="byUser";
我想只包含類型的用戶結果嘗試。但我無法應用過濾器。
這是一個拼寫錯誤還是你試圖比較'用戶'與'USer'有不一樣的外殼? –
我試過那個用戶但沒有收到 –