From user-return-26327-apmail-couchdb-user-archive=couchdb.apache.org@couchdb.apache.org Fri Nov 29 20:56:30 2013 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 52B7B108DB for ; Fri, 29 Nov 2013 20:56:30 +0000 (UTC) Received: (qmail 96795 invoked by uid 500); 29 Nov 2013 20:56:29 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 96730 invoked by uid 500); 29 Nov 2013 20:56:28 -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 96722 invoked by uid 99); 29 Nov 2013 20:56:28 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 29 Nov 2013 20:56:28 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [62.113.250.122] (HELO mail.orlives.de) (62.113.250.122) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 29 Nov 2013 20:56:20 +0000 Received: from arschbook.localnet (p5DD62B15.dip0.t-ipconnect.de [93.214.43.21]) by mail.orlives.de (Postfix) with ESMTPSA id CDE9F52E0110 for ; Fri, 29 Nov 2013 21:55:59 +0100 (CET) From: Oliver Schmidt To: user@couchdb.apache.org Subject: Re: Rewriting query keys Date: Fri, 29 Nov 2013 21:57:23 +0100 Message-ID: <13215746.EgnY3Ama9A@arschbook> User-Agent: KMail/4.11.3 (Linux/3.12.1-1-ARCH; KDE/4.11.3; x86_64; ; ) In-Reply-To: <1385592771595.ce2ff635@Nodemailer> References: <15065551.sG713Z5ONP@arschbook> <1385592771595.ce2ff635@Nodemailer> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart2061936.ciayrv8BCM"; micalg="pgp-sha1"; protocol="application/pgp-signature" X-Virus-Checked: Checked by ClamAV on apache.org --nextPart2061936.ciayrv8BCM Content-Type: multipart/alternative; boundary="nextPart8572110.giSRogoQNs" Content-Transfer-Encoding: 7Bit This is a multi-part message in MIME format. --nextPart8572110.giSRogoQNs Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="iso-8859-1" Thanks, but I CouchDB complains that I don't use valid JSON. I need a composed key as an array, how can I achieve this? Am Mittwoch, 27. November 2013, 14:52:51 schrieb martinh@gmail.com: > Here's an example of one I use that does something similar > > [ > > > { > "from" : "/isBlocked/:blockee", > "to": "_list/isBlocked/isBlocked", > "query": { > "key" : ":blockee", > "include_docs" : "true", > "reduce" : "false" > } > }, > ... > ] --nextPart8572110.giSRogoQNs Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset="iso-8859-1"

Thanks, but I CouchDB= complains that I don't use valid JSON. I need a composed key as an arr= ay, how can I achieve this?

 

Am Mittwoch, 27. Nove= mber 2013, 14:52:51 schrieb martinh@gmail.com:

>= ; Here's an example of one I use that does something similar

>= ;

>= ; [

>= ;

>= ;

>= ; =A0 =A0 {=A0

>= ; =A0 =A0 =A0 =A0 "from" : "/isBlocked/:blockee",=A0=

>= ; =A0 =A0 =A0 =A0 "to": "_list/isBlocked/isBlocked"= ,=A0

>= ; =A0 =A0 =A0 =A0 "query": {=A0

>= ; =A0 =A0 =A0 =A0 =A0 =A0 "key" : ":blockee",=A0

>= ; =A0 =A0 =A0 =A0 =A0 =A0 "include_docs" : "true",<= /p>

>= ; =A0 =A0 =A0 =A0 =A0 =A0 "reduce" : "false"

>= ; }=A0

>= ; =A0 =A0 },

>= ; =A0 =A0 ...

>= ; ]

 

--nextPart8572110.giSRogoQNs-- --nextPart2061936.ciayrv8BCM Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part. Content-Transfer-Encoding: 7Bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) iQIcBAABAgAGBQJSmP++AAoJEMTRts8jlTP3VsQQAIa2Lnt3SdGv7wP84dlvBwGD C1qzyOUIUZVXuVxP3IUeZhSeulgPy6BbDhI7GicjEc4Z+UE3sp/KmQTxYrohltU6 gV4l6cTPbuOAAnD9B2lMgkyW/Axbu0J6N3QiE6PtNabVZmuQi+JgdTKYuRlrLdrV v4lEJfbSoYm9oT6U7ExiB/eEbUdzF9j9Xd7ASCAwjtONsAuZzF/OJRvJU1wbbYsQ f0jJpZ60jGW2IlBjaxMg0PO19enPoG1h3ympbPXZaoQ1P0XvmCnsZOdk6ApyGn7o glPtti2LLGwq3a6BxzseaCDN2kcU9j4dm6MqFklaJi10wtFCsDgpF2ONmleLH9HF seeFcXmB+e5QqyrrT9eVSgn3W3zjojJujSGy1Sxbqxsi4MBEdVpGscrwMVPG/E1F yRAilo5hrqPUn4ezj5koXlFKf26oQklDtTMZHH0w2kYvEnzy66ayyZvKyhgPNkbM 5YVbs0+X0s5ZC2h0enKsZjuj08HXdRiEzQpbpfN/haQm0nv4YoDrD6vuR9laKA+X LxNiogWZMRxfM+FJESipmOWVuLMmHI28CyiEuRgySpi7w6GDanuBjR2jdaqfELoe ViK1/pf8AMH+dfLyFdDIBYL2HcjO5Jo+9kc485K7VztfI/+2eLLsK1fTPhGXiHYd MUnX+Bo3A2tJlzHdokA3 =lbJM -----END PGP SIGNATURE----- --nextPart2061936.ciayrv8BCM--