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 1CBC67E1D for ; Tue, 23 Aug 2011 08:37:37 +0000 (UTC) Received: (qmail 84055 invoked by uid 500); 23 Aug 2011 08:37:35 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 83588 invoked by uid 500); 23 Aug 2011 08:37:25 -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 83578 invoked by uid 99); 23 Aug 2011 08:37:22 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 23 Aug 2011 08:37:22 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,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 pan.gaoyong@gmail.com designates 74.125.82.180 as permitted sender) Received: from [74.125.82.180] (HELO mail-wy0-f180.google.com) (74.125.82.180) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 23 Aug 2011 08:37:12 +0000 Received: by wyj26 with SMTP id 26so6198303wyj.11 for ; Tue, 23 Aug 2011 01:36:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; bh=Z8BLtm3NkvaHORHvemCMUMGPDKPbEYrnSQI9Pd4N/BI=; b=mTlKBzj3nddV5pIhSHC7CtcAL+UGMq0ZKzC4DTJrGfOz5rQLyIq3mpOQvfAXu7Ftzb CNBTQ19jAdM/q8rG/4vX2T/thKqb3lxbvuU2FqK9sgF2g/wxYnnoPbOQey5/2SXN40+I +D2nErizCgk9KZWj0ZWn6O1wARWTSOHW95lpo= MIME-Version: 1.0 Received: by 10.216.60.75 with SMTP id t53mr441305wec.36.1314088612415; Tue, 23 Aug 2011 01:36:52 -0700 (PDT) Received: by 10.216.241.67 with HTTP; Tue, 23 Aug 2011 01:36:52 -0700 (PDT) Date: Tue, 23 Aug 2011 16:36:52 +0800 Message-ID: Subject: first view problem badmatch From: gaoyong pan To: user@couchdb.apache.org Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org I'm trying my first view with url http://localhost:5984/qq/_design/application/_view/all, the code is, _id : _design/application _rev: 8-70c13aeee55e3ba8400f2068f11d9156 views: { all: { map: "function(doc) { emit(doc._id,doc); }" } } and the error is below, can anyone tell what's the issue here? {"error":"badmatch","reason":"{ \n all: {\n map: \"function(doc) {\n emit(doc._id,doc);\n }\"\n }\n}"} -- Pan