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 5A6928DCF for ; Mon, 8 Aug 2011 11:33:37 +0000 (UTC) Received: (qmail 68632 invoked by uid 500); 8 Aug 2011 11:33:35 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 68210 invoked by uid 500); 8 Aug 2011 11:33:30 -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 68192 invoked by uid 99); 8 Aug 2011 11:33:28 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 08 Aug 2011 11:33:28 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of jeroentjevandijk@gmail.com designates 209.85.215.52 as permitted sender) Received: from [209.85.215.52] (HELO mail-ew0-f52.google.com) (209.85.215.52) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 08 Aug 2011 11:33:20 +0000 Received: by ewy28 with SMTP id 28so1507450ewy.11 for ; Mon, 08 Aug 2011 04:33:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=from:content-type:subject:date:message-id:to:mime-version:x-mailer; bh=wxFa5Qh9mZQfD5Q4XfXl3i7lwF9q+li5oxM4pa23F6Q=; b=pr3nmnXry1d0hagfC/7k9hm2MmNK3gT3YxUpg0d10qRMwBYpQfhiwguovLOVWkQDBr ftqr7jsAcoxa4+q7Vr4jpYqRxaNZaSoCQYGCBxKzJ+uZLWT4mr7gk7czYUDt1RFwcas/ wTv1eGP6H0gp62xInw/FbxMsZ8K1WjGZkXEq8= Received: by 10.213.105.195 with SMTP id u3mr310330ebo.27.1312803180037; Mon, 08 Aug 2011 04:33:00 -0700 (PDT) Received: from [192.168.3.178] (095-097-078-050.static.chello.nl [95.97.78.50]) by mx.google.com with ESMTPS id 76sm1755335eee.42.2011.08.08.04.32.58 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 08 Aug 2011 04:32:58 -0700 (PDT) From: Jeroen van Dijk Content-Type: multipart/alternative; boundary=Apple-Mail-4--511472156 Subject: How to use the changes feed with a view as filter Date: Mon, 8 Aug 2011 13:32:56 +0200 Message-Id: <13241CB1-0BD1-4FBA-B09B-1536CD000822@gmail.com> To: user@couchdb.apache.org Mime-Version: 1.0 (Apple Message framework v1084) X-Mailer: Apple Mail (2.1084) X-Virus-Checked: Checked by ClamAV on apache.org --Apple-Mail-4--511472156 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii I've tried to run the changes feed on a specific view, but so far I = haven't succeeded. I'm only able to use the 'doc_ids' filter, but I = can't filter using a view. I've tried the following requests (using IrisCouch, couchdb version = 1.1): GET = http://myaccount.iriscouch.com/mydb/_changes?filter=3D_doc_ids&doc_ids=3D[= "_design/mydb/_view/my_view] GET = http://myaccount.iriscouch.com/mydb/_changes?filter=3D_design&design=3D_de= sign/mydb/_view/my_view Both give me the same result whereas I would expect the 'filter=3D_design'= to give me the result of the map function and not the changes of the = design document itself. The second request also works without the design = parameter: GET http://myaccount.iriscouch.com/mydb/_changes?filter=3D_design I think that also indicates I am doing something wrong. Anyone knows how = to get this working? Thanks, Jeroen NB. My Erlang is not good enough to understand what exactly happens = here: = https://svn.apache.org/repos/asf/couchdb/tags/1.1.0/src/couchdb/couch_chan= ges.erl= --Apple-Mail-4--511472156--