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}
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.