From dev-return-22704-apmail-couchdb-dev-archive=couchdb.apache.org@couchdb.apache.org Sat Jul 21 16:55:58 2012 Return-Path: X-Original-To: apmail-couchdb-dev-archive@www.apache.org Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 314F0DEDF for ; Sat, 21 Jul 2012 16:55:58 +0000 (UTC) Received: (qmail 15757 invoked by uid 500); 21 Jul 2012 16:55:57 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 15723 invoked by uid 500); 21 Jul 2012 16:55:57 -0000 Mailing-List: contact dev-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@couchdb.apache.org Delivered-To: mailing list dev@couchdb.apache.org Received: (qmail 15715 invoked by uid 99); 21 Jul 2012 16:55:57 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 21 Jul 2012 16:55:57 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of kxepal@gmail.com designates 209.85.217.180 as permitted sender) Received: from [209.85.217.180] (HELO mail-lb0-f180.google.com) (209.85.217.180) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 21 Jul 2012 16:55:51 +0000 Received: by lbbgj3 with SMTP id gj3so6772802lbb.11 for ; Sat, 21 Jul 2012 09:55:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=O8IwOZJRE/yCd1+8nK4CFWtHqdogKSouxq+YOtlG6Mo=; b=BEcHKyzUsqyNQswMeZxTiR41cMSLNJ+gdLgw+ggi486mZSxN7NWdAxAmdK6kn1yj9Q lRQo6n+H/B+3H8VDyqkQ96LyN0SuSRICTHLH3i0ydAvwTl/Zx5y5UpF2KvHLoFkHIXuK r7gozaMAlU9ZSNXFmNXMZVHCZ6uSjiiDrfYJ04YSICGERao+LGcL6EvCcAniepECJAct 7t2Oqi1Uwh1gqYxI5GQ+fyDKs5oNyQ3TiyMcuAJlRofEQolRHvKEg5gdhM22rPYcBsUo E4PI16GVf5GBzVeWcJxRj9efwJN8hlcRvFP6M9yclrCNEntZt2opgBU/3RucmldTUlrA H/Yw== MIME-Version: 1.0 Received: by 10.152.113.199 with SMTP id ja7mr10553728lab.10.1342889729848; Sat, 21 Jul 2012 09:55:29 -0700 (PDT) Received: by 10.114.21.166 with HTTP; Sat, 21 Jul 2012 09:55:29 -0700 (PDT) In-Reply-To: References: Date: Sat, 21 Jul 2012 20:55:29 +0400 Message-ID: Subject: Re: "ddoc" protocol for query server? From: Alexander Shorin To: dev@couchdb.apache.org Content-Type: text/plain; charset=UTF-8 X-Virus-Checked: Checked by ClamAV on apache.org > 1/ Does modern 1.2 server use the old map/reduce functions at all? Yes. There wasn't serious changes for all time except addition of shared library for map functions > 2/ I noticed that errors in some cases seem to be returned as an array (old > way?) but in the docs it gives an example using a hash, so I'm assuming > this is the modern way? No: array format is modern one. Errors format of errors was changed in 0.11 from: {"error": "<>", "reason": "<>"} to ["error", "<>", "<>"] However, the "forbidden" error leaved without any changes: {"forbidden": "<>"} -- ,,,^..^,,, On Sat, Jul 21, 2012 at 8:48 PM, Samuel Williams wrote: > 1/ Does modern 1.2 server use the old map/reduce functions at all? > > 2/ I noticed that errors in some cases seem to be returned as an array (old > way?) but in the docs it gives an example using a hash, so I'm assuming > this is the modern way? > > On 22 July 2012 04:36, Alexander Shorin wrote: > >> On Sat, Jul 21, 2012 at 8:33 PM, Samuel Williams >> wrote: >> > Also, does the ["reset"] command reset all design documents? >> >> No. It only drops cached map functions and query server configuration >> that handled reduce overflow option. >> >> -- >> ,,,^..^,,, >>