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 9DDEBD3C5 for ; Tue, 18 Sep 2012 17:17:46 +0000 (UTC) Received: (qmail 96929 invoked by uid 500); 18 Sep 2012 17:17:45 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 96787 invoked by uid 500); 18 Sep 2012 17:17:45 -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 96779 invoked by uid 99); 18 Sep 2012 17:17:45 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Sep 2012 17:17:45 +0000 X-ASF-Spam-Status: No, hits=0.0 required=5.0 tests=FSL_RCVD_USER,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [193.50.230.240] (HELO pluton.utt.fr) (193.50.230.240) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Sep 2012 17:17:38 +0000 Received: from smtp1.utt.fr (smtp1.utt.fr [193.50.230.122]) by pluton.utt.fr (8.13.1/8.13.1) with ESMTP id q8IHHEUP020052 for ; Tue, 18 Sep 2012 19:17:14 +0200 Received: from smtp1.utt.fr (smtp1.utt.fr [127.0.0.1]) by localhost (Postfix) with SMTP id 16CA7A6826B for ; Tue, 18 Sep 2012 19:17:14 +0200 (CEST) Received: from wifi-eduroam1186.utt.fr (wifi-eduroam1186.utt.fr [10.25.2.186]) by smtp1.utt.fr (Postfix) with ESMTP id 10D76A6826A for ; Tue, 18 Sep 2012 19:17:14 +0200 (CEST) Content-Type: text/plain; charset=iso-8859-1 Mime-Version: 1.0 (Apple Message framework v1278) Subject: Re: Exclude documents from view based on list of regex expressions From: =?iso-8859-1?Q?Aur=E9lien_B=E9nel?= In-Reply-To: Date: Tue, 18 Sep 2012 19:17:14 +0200 Content-Transfer-Encoding: quoted-printable Message-Id: References: <91593B54-D63F-47A6-BB7F-0B176D705C78@me.com> To: user@couchdb.apache.org X-Mailer: Apple Mail (2.1278) X-Virus-Checked: Checked by ClamAV on apache.org Hi Jens, >> If you need real regexes, I suppose you will need to build one huge = regex containing them all.=20 > The map function should contain an array of regexes, and match the = doc.issue.name against each one in turn. If it matches any of them, just = return, else emit whatever the appropriate key/value are. Are you sure an array of regexes would be as efficient as a compound = regex? Well, it's true that with JavaScript you never know... I suppose = the only way to figure it out is to try both and take the faster. =20 Aur=E9lien=