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 5094B9E80 for ; Tue, 24 Apr 2012 19:40:22 +0000 (UTC) Received: (qmail 81409 invoked by uid 500); 24 Apr 2012 19:40:20 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 81350 invoked by uid 500); 24 Apr 2012 19:40:20 -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 81342 invoked by uid 99); 24 Apr 2012 19:40:20 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Apr 2012 19:40:20 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of info@netsend.nl designates 46.19.33.36 as permitted sender) Received: from [46.19.33.36] (HELO lock.netsend.nl) (46.19.33.36) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Apr 2012 19:40:11 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by lock.netsend.nl (Postfix) with ESMTP id 04BB8212AC for ; Tue, 24 Apr 2012 21:39:50 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at netsend.nl Received: from lock.netsend.nl ([127.0.0.1]) by localhost (lock.netsend.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id jNdXbJCT5M4k for ; Tue, 24 Apr 2012 21:39:48 +0200 (CEST) Received: from [192.168.178.111] (D57D0A72.static.ziggozakelijk.nl [213.125.10.114]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by lock.netsend.nl (Postfix) with ESMTPSA id 2F6F421291 for ; Tue, 24 Apr 2012 21:39:47 +0200 (CEST) Message-ID: <4F970183.8080300@netsend.nl> Date: Tue, 24 Apr 2012 21:39:47 +0200 From: Tim Kuijsten Organization: Netsend User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:12.0) Gecko/20120420 Thunderbird/12.0 MIME-Version: 1.0 To: user@couchdb.apache.org Subject: replication with document transformation Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit I'm currently replicating with filters, this works great to share certain documents between multiple systems based on their attributes. The thing is, I'd like to map certain names to a locally used name. Example: we have 2 systems that want to share some documents with each other, based on a certain value for the "company" attribute. The owners of database 1 want to share all documents that have "company": "Webstore Chicago" with the owners of database 2. All fine with a filter, but the owners of database 2 like to refer to "Webstore Chicago" as "Webstore 501". Is there a way to somehow transform the document while it's being replicated by the filter so in 1 database it's represented as "Webstore Chicago" and in the other db this same doc has "Webstore 501"? Maybe if I could replicate the results of a view instead of the direct docs or something.. Regards, Tim