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 0B06510043 for ; Fri, 14 Mar 2014 08:19:07 +0000 (UTC) Received: (qmail 651 invoked by uid 500); 14 Mar 2014 08:19:05 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 396 invoked by uid 500); 14 Mar 2014 08:18:58 -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 379 invoked by uid 99); 14 Mar 2014 08:18:55 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 14 Mar 2014 08:18:55 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of suraj.kumar@inmobi.com designates 209.85.223.175 as permitted sender) Received: from [209.85.223.175] (HELO mail-ie0-f175.google.com) (209.85.223.175) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 14 Mar 2014 08:18:48 +0000 Received: by mail-ie0-f175.google.com with SMTP id to1so2145981ieb.6 for ; Fri, 14 Mar 2014 01:18:27 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:date:message-id:subject:from:to :content-type; bh=XlvNJnuLIRfcy4g9IYBm8+XZiuvxBEHaZqn7MFlRhHA=; b=BVIVMDug8nTqpN5HLrH3SZf9ompDcADuU1yo6i6zH5IHG3adbFqeWBb4vTz3RwFrax v96hzb6/nKPsdtI7LP405tZprFHeo9pdesD6ZpYS0znYwUdyEJCEidL9D/UOlysK80mf 5cwYYH96WYDOF+cPyCuDMGi5LS9DAHYJFdVsmA5QHRGeFQVlA+b8r3cdaKQt3d+6Ab8M 6Kzd0lGblDM4molzGXefyw1URjUVfFRNMaVoGScrlwjvrap0nIKZDw6vF/3+oy7Y6r2/ V8e5qeZkg5u28QxOVs5rokSqs65yE8sIIlnnrSZigjx7luOnXn29NT7ai3vDeaNrU3Tz wskw== X-Gm-Message-State: ALoCoQm/P9nOTu9IAyp7k8EqLAiw26bLtrE5y0SbKq0nYfG3y+G8SNBrT+Kr9HpWxPV0XwJyNQB9tvIuS/prc5Ir+UIIn4n4q/2PqiWxoLTjzEAWZK9Su2w= MIME-Version: 1.0 X-Received: by 10.42.168.2 with SMTP id u2mr768434icy.1.1394785107466; Fri, 14 Mar 2014 01:18:27 -0700 (PDT) Received: by 10.64.76.165 with HTTP; Fri, 14 Mar 2014 01:18:27 -0700 (PDT) Date: Fri, 14 Mar 2014 13:48:27 +0530 Message-ID: Subject: realizing design docs in views / modifying couch From: Suraj Kumar To: user@couchdb.apache.org Content-Type: multipart/alternative; boundary=90e6ba613844de8bbe04f48cb608 X-Virus-Checked: Checked by ClamAV on apache.org --90e6ba613844de8bbe04f48cb608 Content-Type: text/plain; charset=US-ASCII In our app, we have the notion of named classifier functions which categorize documents into N (system defined) categories. The categories by themselves are nothing but names associated to functions which will return true/false for each document. We would so love to see this app take off the ground by merely using the changes API filter functions as classifier functions and have an external (node.js) program subscribe to these streams and sets the name into the document per our definition. Ideally, once 'categorized', unless things change, the document may not even require a re-categorization. I'd like to expose the list of possible categories to the outside world: In other words, I'd love to simply emit() the top level keys of a filter function defining part of design documents. But, from what I understand, views don't see design docs. What is the recommended way of building indexed metadata about design documents? Or, how do I go about implementing a classifier system the _right_ way? For the lack of such a system, I think, it makes sense to modify couchDB core to make it support, like Validate Doc Update functions, a set of Classifier functions. It would have to behave exactly like VDU, except the JS function can also return the changed document and couch writes the changed part also. We are thinking of doing this to avoid an external changes stream processor, but if there is a standard way in which this can be done, we'd like to listen and do it that way. Your thoughts? Thanks, -Suraj -- An Onion is the Onion skin and the Onion under the skin until the Onion Skin without any Onion underneath. -- _____________________________________________________________ The information contained in this communication is intended solely for the use of the individual or entity to whom it is addressed and others authorized to receive it. It may contain confidential or legally privileged information. If you are not the intended recipient you are hereby notified that any disclosure, copying, distribution or taking any action in reliance on the contents of this information is strictly prohibited and may be unlawful. If you have received this communication in error, please notify us immediately by responding to this email and then delete it from your system. The firm is neither liable for the proper and complete transmission of the information contained in this communication nor for any delay in its receipt. --90e6ba613844de8bbe04f48cb608--