From user-return-14661-apmail-couchdb-user-archive=couchdb.apache.org@couchdb.apache.org Thu Jan 27 17:21:57 2011 Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 52291 invoked from network); 27 Jan 2011 17:21:57 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 27 Jan 2011 17:21:57 -0000 Received: (qmail 39210 invoked by uid 500); 27 Jan 2011 17:21:56 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 38934 invoked by uid 500); 27 Jan 2011 17:21:54 -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 38917 invoked by uid 99); 27 Jan 2011 17:21:53 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 27 Jan 2011 17:21:53 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [209.85.161.180] (HELO mail-gx0-f180.google.com) (209.85.161.180) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 27 Jan 2011 17:21:45 +0000 Received: by gxk19 with SMTP id 19so752226gxk.11 for ; Thu, 27 Jan 2011 09:21:24 -0800 (PST) MIME-Version: 1.0 Received: by 10.100.7.1 with SMTP id 1mr125670ang.127.1296148884064; Thu, 27 Jan 2011 09:21:24 -0800 (PST) Received: by 10.147.7.17 with HTTP; Thu, 27 Jan 2011 09:21:24 -0800 (PST) Date: Thu, 27 Jan 2011 09:21:24 -0800 Message-ID: Subject: erlang views From: Kenneth Tyler To: user@couchdb.apache.org Content-Type: multipart/alternative; boundary=001485f625a2cf8ca7049ad72d2d X-Virus-Checked: Checked by ClamAV on apache.org --001485f625a2cf8ca7049ad72d2d Content-Type: text/plain; charset=ISO-8859-1 If i want to select documents by values in certain parts of a key and ignore other parts I don't think I can do that in couch using javascript views. If i have keys: a,3,b,4 -- a,2,c,1 -- a,5,b,2 and i want to return keys that match a, _ , b, _ (where _ means "i don't care") can i do that if i switch to writing the views in erlang ? i know i could deal with this by writing a new view, whose key was made up of the 1 and 3rd place values, but what i want is a way to return rows from a view that contains the full key by pattern matching thanks ken tyler --001485f625a2cf8ca7049ad72d2d--