couchdb-lucene
couchdb-lucene copied to clipboard
only the admins should be allowed to do index maintenance
couchdb-lucene index maintanance operations like _optimize
, _expunge
and _cleanup
should be accessible only with the admin credentials.
For exampe, my couchdb database doesn't allow me do _compact
without admin credentials, but allowes me to _optmize
couchdb-lucene index.
$ curl -X POST http://localhost:15984/editions/_compact
{"error":"unauthorized","reason":"You are not a db or server admin."}
$ curl -X POST http://localhost:15984/editions/_fti/_design/seeds/by_seed/_optimize
{"ok":true}
It seems you have set the authentication credentials in the couchdb-lucene.ini file. I think there is no way to manage that...