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 3EF0BD27E for ; Mon, 24 Sep 2012 02:34:42 +0000 (UTC) Received: (qmail 59845 invoked by uid 500); 24 Sep 2012 02:34:40 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 59794 invoked by uid 500); 24 Sep 2012 02:34:40 -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 59784 invoked by uid 99); 24 Sep 2012 02:34:40 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 24 Sep 2012 02:34:40 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=FSL_RCVD_USER,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [209.85.217.180] (HELO mail-lb0-f180.google.com) (209.85.217.180) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 24 Sep 2012 02:34:31 +0000 Received: by lbbge1 with SMTP id ge1so354748lbb.11 for ; Sun, 23 Sep 2012 19:34:10 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-originating-ip:in-reply-to:references:from:date :message-id:subject:to:content-type:x-gm-message-state; bh=FvyjtHBGNi+VN6+pLEMWclQS0tTlSLqXsbfdlQeM4Zc=; b=LFaadntonI55Vfz+ATchcrzb3OaifFYMMrvyD8/jcuUTFP74fIzkp8XJDPXHV4I64S YPQ7WDiMzzuFH/1UKytnV9KFKpV/UlJHYj/YfJh/4AVannIeyWRDxgg/YjOZ/26coQXg dbvNq0j92yUvX/I0ELl594JPhU/uy6ouv+94D5RBciQ5afcDllZhgKcXAD16nRpuqgDL kC2ZFPzf/f86PIDKNV6LX9wVlmIeQGWyFrnyjfKE+Y5d1h74puaYCuTlppJ9CWjX8dXx lzNemKO174uasEmwq2/4D1ycjBHGzzBbJse29R26EeTaaEsz4UpEgy84S23KIbWC9gLr y8eQ== Received: by 10.112.38.168 with SMTP id h8mr3813512lbk.119.1348454050667; Sun, 23 Sep 2012 19:34:10 -0700 (PDT) MIME-Version: 1.0 Received: by 10.114.74.196 with HTTP; Sun, 23 Sep 2012 19:33:50 -0700 (PDT) X-Originating-IP: [68.5.117.177] In-Reply-To: <505FA350.3090403@gmail.com> References: <505FA350.3090403@gmail.com> From: Mark Hahn Date: Sun, 23 Sep 2012 19:33:50 -0700 Message-ID: Subject: Re: did query change in 1.20 ? To: user@couchdb.apache.org Content-Type: multipart/alternative; boundary=e0cb4efe2ebeaf9e5204ca696cd9 X-Gm-Message-State: ALoCoQkHH1ecIyf1cLozKEw6jAvAVchEbn4R94FFGn519aVfXACsQFxBSVBxCscPQ4US5ish+9Fy --e0cb4efe2ebeaf9e5204ca696cd9 Content-Type: text/plain; charset=ISO-8859-1 Is this being issued on a command line? Is everything escaped properly? On Sun, Sep 23, 2012 at 5:03 PM, john.tiger wrote: > was there a change from ?key= what is the right syntax ? > > /_design/ddoc/_view/**getuserdoc?key="jdoe" > > => "error":"bad_request","reason"**:"invalid_json"} > so does "key"="jdoe", so does key=jdoe > > but > ?{key:"jdoe"} returns all doctypes="user" but not just jdoe as wanted > > here's the view: > > "views":{ > "getuserdoc":{ > "map":"function(doc) { > if (doc.doctype == 'user'){ > emit(doc.username, doc); > } > }" > } > --e0cb4efe2ebeaf9e5204ca696cd9--