Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 79662 invoked from network); 17 Nov 2009 22:54:56 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 17 Nov 2009 22:54:56 -0000 Received: (qmail 70534 invoked by uid 500); 17 Nov 2009 22:54:55 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 70475 invoked by uid 500); 17 Nov 2009 22:54:55 -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 Delivered-To: moderator for user@couchdb.apache.org Received: (qmail 91711 invoked by uid 99); 17 Nov 2009 22:16:38 -0000 X-ASF-Spam-Status: No, hits=0.7 required=5.0 tests=AWL,BAYES_00,UNPARSEABLE_RELAY X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of slubowsky@netzero.net designates 64.136.47.15 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=netzero.net; s=alpha; t=1258496174; bh=47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU=; l=0; h=X-UNTD-OriginStamp:From:Date:To:Subject:Message-Id:Content-Type; b=CB/wpxfTUZobgj2jpAnSo2cr2DrpGEOt0kjZgMgyJGG1A2nkw3qJfmgIYXpVdh3Su 0zRsIR56gEP6hOF9Al+MstoQtiMd4RPEhjTCOLsvYSikQy0UI9NhtemcHmLzfHR7yJ 6+YBrAqC1WCOVdwEkrBALFIlOLwUBiqupp7UXXOY= X-UOL-TAGLINE: true X-UNTD-OriginStamp: 3wTHiWFTdFrWjmm2n5pX9bmRBt5Zin3Z2XBQ78LUSjHs2R3rroxWlg== X-Originating-IP: [208.252.24.66] Mime-Version: 1.0 From: "slubowsky@netzero.net" Date: Tue, 17 Nov 2009 22:15:18 GMT To: user@couchdb.apache.org Subject: How to get delete change notifications when using filter X-Mailer: Webmail Version 4.0 Message-Id: <20091117.171518.28596.0@webmail19.dca.untd.com> Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Content-Type: text/plain; charset=ISO-8859-1 X-UNTD-BodySize: 620 X-ContentStamp: 2:2:527742964 X-UNTD-Peer-Info: 10.171.12.159|webmail19.dca.untd.com|outbound-bu1.dca.untd.com|slubowsky@netzero.net I am using the changes API with a filter and getting the expected change= notifications when an interesting document is added or updated. When a = document that would match the filter is deleted however, I do not get th= e notification. What is the correct way to write a filter that will noti= fy me of deletions as well? The filter I am using is something like the following function(doc, req) { if(doc.source_ =3D=3D req.query.source) { return tr= ue; } else { return false; }} When documents with source_ =3D=3D USER are created/edited I get notific= ations, when they are deleted, I do not. Thanks Stephen = ____________________________________________________________ Online Associates Degrees Connect to AS and AA degrees from leading online universities today! http://thirdpartyoffers.netzero.net/TGL2231/c?cp=3DNdObs_ah09VHEqS-BxX4n= AAAJz7PXgnlLC7u5ZtKh1zh0o-lAAQAAAAFAAAAANEiWz4AAAMlAAAAAAAAAAAAAAAAAABSJ= QAAAAA=3D