我用下面的JSON找到導致Cloudant
{ "selector": { "$and": [ { "type": { "$eq": "sensor" } }, { "v": { "$eq": 2355 } }, { "$or": [ { "p": "#401000103" }, { "p": "#401000114" } ] }, { "t_max": { "$gte": 1459554894 } }, { "t_min": { "$lte": 1459509591 } } ] }, "fields": [ "_id", "p" ], "limit": 200 }
如果我運行這個againt我cloudant數據庫,會出現以下錯誤:
{ "error": "unknown_error", "reason": "function_clause", "ref": 3379914628 }
如果我刪除一個$或元素,我會得到查詢結果。 (,{"p":"#401000114"}
)
另外我得到一個結果,如果我更換#401000114與#401000114我得到的結果。 但是,當我想要使用這兩個元素我得到上面的錯誤代碼。
有人可以告訴這是什麼error_reason:function_clause是什麼意思?