我是 php 新手,所以需要任何帮助来解决这个问题
我试图运行查询
localhost/ls-test/_design/app-views/_view/timestamp-measurement?descending=true&include_docs=true
并让 json 返回类似以下格式的内容:
{"total_rows":441740,"offset":0,"rows":[
{"id":"123","key":[2013,2],"value":["1","PowerConsumption","0.0"],"doc":{"_id":"5446691910660799","SourceType":"SENSOR","SourceId":"4294403072","Property":"PowerConsumption","value":"0.0","}},
{"id":"124","key":[2013,2],"value":["228224","Motion","false"],"doc":{"_id":"5446688472521031","SourceType":"SENSOR","SourceId":"228224","Property":"Motion","value":"false","timestamp":"2013-02-12 17:06:06.768"}}
...]}
那么,如何在 PHP 中进一步查询我的结果仅基于特定值显示,例如仅具有 SourceId:228224 的文档列表