Return-Path: X-Original-To: apmail-couchdb-user-archive@www.apache.org Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A71B57039 for ; Sat, 22 Oct 2011 15:36:33 +0000 (UTC) Received: (qmail 7606 invoked by uid 500); 22 Oct 2011 15:36:32 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 7563 invoked by uid 500); 22 Oct 2011 15:36:31 -0000 Mailing-List: contact user-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@couchdb.apache.org Delivered-To: mailing list user@couchdb.apache.org Received: (qmail 7555 invoked by uid 99); 22 Oct 2011 15:36:31 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 22 Oct 2011 15:36:31 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_IMAGE_ONLY_32,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [209.85.213.52] (HELO mail-yw0-f52.google.com) (209.85.213.52) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 22 Oct 2011 15:36:27 +0000 Received: by ywm39 with SMTP id 39so3113888ywm.11 for ; Sat, 22 Oct 2011 08:36:04 -0700 (PDT) MIME-Version: 1.0 Received: by 10.182.124.67 with SMTP id mg3mr1931372obb.52.1319297763984; Sat, 22 Oct 2011 08:36:03 -0700 (PDT) Received: by 10.182.88.103 with HTTP; Sat, 22 Oct 2011 08:36:03 -0700 (PDT) In-Reply-To: References: Date: Sat, 22 Oct 2011 17:36:03 +0200 Message-ID: Subject: Re: selective replication not working for deleted source documents From: Kwasi Gyasi - Agyei To: user@couchdb.apache.org Content-Type: multipart/alternative; boundary=f46d0444eee593454e04afe4f214 --f46d0444eee593454e04afe4f214 Content-Type: text/plain; charset=UTF-8 I thing if you run a _change request from target/source you should be able to remove what should be removed. just an idea :) On Fri, Oct 21, 2011 at 11:14 PM, Nestor Urquiza wrote: > Great! Tested and worked but only for the new documents I add. Any > documents deleted from source before the addition of the filter will > not be deleted in the destination. Nothing big but definitely to be > kept in mind. Probably there is an option to force even deleting > those? > > Thanks! > -Nestor > > On Fri, Oct 21, 2011 at 2:38 PM, Robert Newson wrote: > > Your filter function blocks replication of deletions. > > > > add; > > > > if (doc._deleted) { > > return true; > > } > > > > > > On 21 October 2011 19:35, Nestor Urquiza > 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 > >> > > > -- Multimedia and Communication | Property | Entertainment Kwasi Owusu Gyasi - Agyei *cell* (+27) (0) 76 466 4488 *website *www.4things.co.za *email *kwasi.gyasiagyei@4things.co.za *skype *kwasi.gyasiagyei *role* Developer.Designer.Software Architect --f46d0444eee593454e04afe4f214--