Couchdb 使用命令行中的_find
My CouchDB(版本1.7.1_5)设置: 现在我想找到名为Couchdb 使用命令行中的_find,couchdb,Couchdb,My CouchDB(版本1.7.1_5)设置: 现在我想找到名为Apple的产品。根据我的建议,我应该使用\u查找。但是我找不到正确的语法。这个请求有什么问题 $ curl -d "{\"selector\": {\"name\": \"Apple\"}}" \ -H "Content-Type: application/json" -X POST http://localhost:5984/shop/_find {"error":"bad_request","reason":"Refer
Apple
的产品。根据我的建议,我应该使用\u查找。但是我找不到正确的语法。这个请求有什么问题
$ curl -d "{\"selector\": {\"name\": \"Apple\"}}" \
-H "Content-Type: application/json" -X POST http://localhost:5984/shop/_find
{"error":"bad_request","reason":"Referer header required."}
你没有提到你的CouchDB版本。这是怎么一回事?CouchDB 1.6.1不支持像\u find
API这样的mango查询。您没有提到您的CouchDB版本。这是怎么一回事?在CouchDB 1.6.1中不支持像\u-find
API这样的mango查询。mango查询服务器,一个在端点/{db}/\u-find
后面,只包含在CouchDB中,从mango查询服务器开始,一个在端点/{db}/\u-find
后面,仅包含在CouchDB中,从开始,我在问题中添加了版本号(1.7.1_5)。我在问题中添加了版本号(1.7.1_5)。
$ curl -d "{\"selector\": {\"name\": \"Apple\"}}" \
-H "Content-Type: application/json" -X POST http://localhost:5984/shop/_find
{"error":"bad_request","reason":"Referer header required."}