Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 94418 invoked from network); 17 Feb 2010 20:04:57 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 17 Feb 2010 20:04:57 -0000 Received: (qmail 20232 invoked by uid 500); 17 Feb 2010 20:04:55 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 20162 invoked by uid 500); 17 Feb 2010 20:04:55 -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 20152 invoked by uid 99); 17 Feb 2010 20:04:55 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Feb 2010 20:04:55 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of normanrosner@googlemail.com designates 209.85.220.225 as permitted sender) Received: from [209.85.220.225] (HELO mail-fx0-f225.google.com) (209.85.220.225) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Feb 2010 20:04:45 +0000 Received: by fxm25 with SMTP id 25so6423888fxm.32 for ; Wed, 17 Feb 2010 12:04:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:from:content-type :content-transfer-encoding:subject:date:message-id:to:mime-version :x-mailer; bh=DqvkjwGE+qXMm7/gVR/qIpTKhQHBX9hkbKetVmXHxW8=; b=qcxMx5N23JfkJ5VCpjN/H4euWnFfe9Y9CXy1vPDBdiHL7KwDQAsYK6NUlP1nQ/p5om wC8prPREQLQqLg4lNgApILoRJfJXIvpeJpkU/FELzFFsszwK6onoWa0Nj6vgioFkbdiw O7fmKnziCRLrR+SnUfvFuHuIz7wVGvMLmbSEk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=from:content-type:content-transfer-encoding:subject:date:message-id :to:mime-version:x-mailer; b=lCpK5ekDOACaEKXUKo6LuDhdwbUZJbKPyRgKMiiQyHE9xxDaHnF4N/TksOKTvO8YuM PH2AzviYprakHIxQinJVbu/Un/2HfRjy+CqCLUtyrwQGycIq0uSDbbAtyvINNvFi9wHV MH1C1dMGboCR3BdCac9Dujcj46hV4PFIFrMRM= Received: by 10.87.63.33 with SMTP id q33mr5994266fgk.24.1266437063835; Wed, 17 Feb 2010 12:04:23 -0800 (PST) Received: from ?192.168.178.21? (p54BC41DF.dip.t-dialin.net [84.188.65.223]) by mx.google.com with ESMTPS id e20sm7407720fga.15.2010.02.17.12.04.22 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 17 Feb 2010 12:04:22 -0800 (PST) From: Norman Rosner Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Subject: Chaining of views/MapReduce Date: Wed, 17 Feb 2010 21:04:19 +0100 Message-Id: <96B56DFD-CE21-4B69-9D43-C8CF3F841C9F@googlemail.com> To: user@couchdb.apache.org Mime-Version: 1.0 (Apple Message framework v1077) X-Mailer: Apple Mail (2.1077) Hi folks, first, I'll have to admit that I'm kinda new to JavaScript and of course = to CouchDB. Second I just reuse the subject so I hope it also pops up = if anybody searches for it.=20 As I read chaining of views is not possible yet but it's mentioned = couple of times on the mailing list. So here's what I want to do: 1. Create a list of unique labels/tags/whatever through all of the = documents (e.g. all nouns that are in the documents) 2. Extract all labels/tags/nouns of each document and check them again = the before calculated result in some kind of way=20 For the second point I created a view which works except of the checking = against the result from point 1. Now I'm trying to solve point 1.=20 And here my questions begin: How can I create/update a document from = inside of a map function? As I think of it, I'll have to make a HTTP GET = to load the document in each iteration. I found some HTTP stuff in the = test.js in the test folder, but I'm not quite sure how to use it and if = it's the right way of thinking? Is there any way of using global = variables throughout 'couchapps' (e.g. through the lib folder and = thelike)? Any help of you CouchDB kings would be greatly appreciated! Cheers, norman=