incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Davis <paul.joseph.da...@gmail.com>
Subject Re: Force update of index?
Date Tue, 16 Nov 2010 15:43:54 GMT
On Tue, Nov 16, 2010 at 7:34 AM, Michael Zedeler <michael@zedeler.dk> 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.

Mime
View raw message