[
https://issues.apache.org/jira/browse/COUCHDB-3266?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15798696#comment-15798696
]
Nick Vatamaniuc commented on COUCHDB-3266:
------------------------------------------
Thanks for checking out the new selector feature!
Deleting a document via the DELETE method is an equivalent operation PUT-ing
{"_deleted":true} document a a new revision.
It seems to achieve the desired effect, it is also possible to delete a
document and keep all the original fields by just adding a "_deleted:true field
and PUT-ing that. For example {"type":"message", "subtype":"email", ...,
"_deleted":true} then the document will pass the filter.
> changes feed not invoked when deleting a document using a selector filtered
> feed.
> ---------------------------------------------------------------------------------
>
> Key: COUCHDB-3266
> URL: https://issues.apache.org/jira/browse/COUCHDB-3266
> Project: CouchDB
> Issue Type: Bug
> Components: Database Core
> Reporter: Steven Spungin
>
> When I subscribe to the _changes endpoint with a selector filter, I get
> updated and created changes, but not deleted changes.
> But when I subscribe without a selector, I get all the changes as expected.
> Here is my posted selector:
> {"selector": {"type": "message", "subtype": "email"}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)