From user-return-13732-apmail-couchdb-user-archive=couchdb.apache.org@couchdb.apache.org Tue Nov 16 15:44:45 2010 Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 49152 invoked from network); 16 Nov 2010 15:44:45 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 16 Nov 2010 15:44:45 -0000 Received: (qmail 51590 invoked by uid 500); 16 Nov 2010 15:45:15 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 51434 invoked by uid 500); 16 Nov 2010 15:45:15 -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 51418 invoked by uid 99); 16 Nov 2010 15:45:14 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Nov 2010 15:45:14 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of paul.joseph.davis@gmail.com designates 209.85.214.180 as permitted sender) Received: from [209.85.214.180] (HELO mail-iw0-f180.google.com) (209.85.214.180) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Nov 2010 15:45:08 +0000 Received: by iwn37 with SMTP id 37so987118iwn.11 for ; Tue, 16 Nov 2010 07:44:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to:content-type; bh=7WILQkPU4178ofy+HkQ0cdHNfxCU+Jp+z9HFtUMkzLE=; b=YSRqgPvna6O6usT9o/INmJdYLWO6YD+yzo+hbmldXKLSDNMpEookdCVCYkQQISVM3g 2cbEufhquGAI/SWu79Y340Z4qXkDZWhdnvphrfoDBfNfeicFMMByBijFndpgamak1m4s uRs1DqnIzxJMMOInpqXemgoPLhAg02eB0N5EM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; b=CSlZjIjU6xNtL/e8qJ77Ch3lU0EPA/GHOsxEl16sEeebeoHQTV/3l8KYyKDsx4dsqr g9irUmGmPA2hxQKA/KdQcJg6A2UA1f6km5eg4IUeSbrfKf4nF6/G7abtOvXckNc+zhic vBVykMf8k4EEZ0olZQ1NEasywPwAV7GKHMZ+o= Received: by 10.231.35.194 with SMTP id q2mr5810114ibd.26.1289922277790; Tue, 16 Nov 2010 07:44:37 -0800 (PST) MIME-Version: 1.0 Received: by 10.231.35.5 with HTTP; Tue, 16 Nov 2010 07:43:54 -0800 (PST) In-Reply-To: <4CE27A3F.8060708@zedeler.dk> References: <4CE267E0.6010006@zedeler.dk> <6558C20D-B0A6-4B78-BC5A-96CCF11A2183@apache.org> <4CE27A3F.8060708@zedeler.dk> From: Paul Davis Date: Tue, 16 Nov 2010 10:43:54 -0500 Message-ID: Subject: Re: Force update of index? To: user@couchdb.apache.org Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org On Tue, Nov 16, 2010 at 7:34 AM, Michael Zedeler wrote: > On 2010-11-16 12:42, Jan Lehnardt wrote: >> >> On 16 Nov 2010, at 12:15, Michael Zedeler wrote: >>> >>> I know I have taken a wrong turn somewhere earlier when I designed my >>> schema, but... >>> >>> I need a way to force CouchDB to regenerate an index because it is date >>> dependent (bummer!). >>> >>> Isn't there some URL I can GET in order to tell CouchDB to regenerate a >>> specific view? >> >> Just change one of the map or reduce funtions (a whitespace change will >> do) and save >> the design doc. Now query one of the views. Done. > > Thanks. It worked. > > However, I'd like to know if there is any other method where I can choose a > specific view to refresh (since this triggers a reindex of every view in the > design document)... > > Regards, > > Michael. > All views in a _design/doc are indexed simultaneously. If you would like views to index independently, you'll need to do as Nils says and store them in different _design/docs.