From commits-return-8636-apmail-couchdb-commits-archive=couchdb.apache.org@couchdb.apache.org Thu Aug 9 19:47:11 2012 Return-Path: X-Original-To: apmail-couchdb-commits-archive@www.apache.org Delivered-To: apmail-couchdb-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C5159D457 for ; Thu, 9 Aug 2012 19:47:11 +0000 (UTC) Received: (qmail 39173 invoked by uid 500); 9 Aug 2012 19:47:11 -0000 Delivered-To: apmail-couchdb-commits-archive@couchdb.apache.org Received: (qmail 39140 invoked by uid 500); 9 Aug 2012 19:47:11 -0000 Mailing-List: contact commits-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 commits@couchdb.apache.org Received: (qmail 39130 invoked by uid 500); 9 Aug 2012 19:47:11 -0000 Delivered-To: apmail-incubator-couchdb-commits@incubator.apache.org Received: (qmail 39127 invoked by uid 99); 9 Aug 2012 19:47:11 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 09 Aug 2012 19:47:11 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.131] (HELO eos.apache.org) (140.211.11.131) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 09 Aug 2012 19:47:09 +0000 Received: from eos.apache.org (localhost [127.0.0.1]) by eos.apache.org (Postfix) with ESMTP id 6EB75884; Thu, 9 Aug 2012 19:46:48 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable From: Apache Wiki To: Apache Wiki Date: Thu, 09 Aug 2012 19:46:48 -0000 Message-ID: <20120809194648.22528.54327@eos.apache.org> Subject: =?utf-8?q?=5BCouchdb_Wiki=5D_Update_of_=22HTTP=5Fview=5FAPI=22_by_JensAlf?= =?utf-8?q?ke?= Auto-Submitted: auto-generated Dear Wiki user, You have subscribed to a wiki page or wiki category on "Couchdb Wiki" for c= hange notification. The "HTTP_view_API" page has been changed by JensAlfke: http://wiki.apache.org/couchdb/HTTP_view_API?action=3Ddiff&rev1=3D64&rev2= =3D65 Comment: Improved documentation of View Generation Options } }}} =3D=3D View Generation Options =3D=3D - There is currently one option that affects the data written into a view. = To [[https://issues.apache.org/jira/browse/COUCHDB-346|include documents' l= ocal sequence numbers]] in the index, so they will appear in the query resu= lts, add the following to the design document: + There are two view indexing options that can be defined in a design docum= ent as boolean properties of an 'options' sub-object. (Unlike the querying = options below, these aren't URL parameters because they take effect when th= e view index is ''generated'', not when it's ''accessed''.) = {{{#!highlight javascript - options : { + "options" : { - local_seq : true + "local_seq" : true, + "include_design" : true } }}} - (Unlike the querying options below, this isn't a URL parameter because it= takes effect when the view index is ''generated'', not when it's ''accesse= d''.) + = + '''local_seq''' makes documents' local sequence numbers available to map = functions (as a '_local_seq' document property). + = + '''include_design''' causes map functions to be called on design document= s as well as regular documents. = =3D=3D Querying Options =3D=3D Columns can be a list of values, there is no set limit to the number of v= alues or amount of data that columns can hold.