incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Robert Newson <rnew...@apache.org>
Subject Re: selective replication not working for deleted source documents
Date Fri, 21 Oct 2011 18:38:13 GMT
Your filter function blocks replication of deletions.

add;

if (doc._deleted) {
  return true;
}


On 21 October 2011 19:35, Nestor Urquiza <nestor.urquiza@gmail.com> wrote:
> Hi,
>
> I have successfully setup selective replication as I have posted on
> http://thinkinginsoftware.blogspot.com/2011/10/couchdb-filtered-replication.html
>
> Everything works perfectly but I have a user story I cannot complete and it is:
> When a document is deleted in source
> Then the document should be deleted from target
>
> Any idea how can I get this done preferably using the _replicator. I
> am not able to discover a magic flag that would allow me to achieve
> what I need.
>
> Thanks,
>
> -Nestor
>

Mime
View raw message