couchdb-documentation icon indicating copy to clipboard operation
couchdb-documentation copied to clipboard

Mannualy compact views document didn't correspond to the real operation

Open guanfeix opened this issue 2 years ago • 0 comments

Mannualy compact views document didn't correspond to the real operation

But the description in document real puzzle me,why designname refer to dbname/viewname in operation,I recommend you add one detailed example on document,It will real kindful for CouchDB newbee

It conflict with the viewfunction description here. 图片 In viewfunction: GET /{db}/_design/{ddoc}/_view/{view} ddoc – Design document name curl -H "Content-Type: application/json" -X POST http://localhost:5984/dbname/_compact/dbname/viewname works for me

In compation: POST /{db}/_compact/{ddoc} designname refer to dbname/viewname

curl -H "Content-Type: application/json" -X POST http://localhost:5984/dbname/_compact/designname curl -H "Content-Type: application/json" -X POST http://localhost:5984/dbname/_compact/dbname/viewname

图片

图片

guanfeix avatar Mar 17 '22 01:03 guanfeix