Details
-
Bug
-
Resolution: Fixed
-
Major
-
5.0.0
-
None
-
Untriaged
-
No
Description
Add a design doc attribute to enable indexing of xattributes on document deletion.
By default this attribute is false so that view-engine indexes only document set mutations.
Anybody interested like sync-gateway has to set this attribute to true.
This setting can be performed using REST call on 9500 and is not exposed in the UI.
View definition looks like
{
|
"views" : {
|
"view1": {
|
"map" : "function(doc, meta){emit(meta.id, null);}"
|
}
|
},
|
"index_xattr_on_deleted_docs" : true
|
}
|
and this view can be set up using
curl -X PUT -H 'Content-Type: application/json' http://Administrator:asdasd@172.31.7.169:9500/default/_design/ddoc1 -d @views_def.json
|