Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 87976 invoked from network); 14 Jul 2010 05:45:47 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 14 Jul 2010 05:45:47 -0000 Received: (qmail 84554 invoked by uid 500); 14 Jul 2010 05:45:46 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 84212 invoked by uid 500); 14 Jul 2010 05:45:42 -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 84202 invoked by uid 99); 14 Jul 2010 05:45:41 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Jul 2010 05:45:41 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of Steven.Prentice@nextgen.net designates 203.18.147.131 as permitted sender) Received: from [203.18.147.131] (HELO smtp12.NextGen.Net) (203.18.147.131) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Jul 2010 05:45:33 +0000 Received: from locutus.nextgen.net ([203.18.147.35]) by smtp12.NextGen.Net with ESMTP id 2010071415451099-736728 ; Wed, 14 Jul 2010 15:45:10 +1000 In-Reply-To: References: To: user@couchdb.apache.org MIME-Version: 1.0 Subject: Re: Custom view parameters??? X-KeepSent: 5D867016:2A5B970B-CA257760:001F74EA; type=4; flags=0; name=$KeepSent X-Mailer: Lotus Notes Release 8.0.1 February 07, 2008 Message-ID: From: Steven.Prentice@nextgen.net Date: Wed, 14 Jul 2010 15:45:09 +1000 X-MIMETrack: Serialize by Router on Locutus/NextGen Systems at 14/07/2010 03:45:11 PM, Serialize complete at 14/07/2010 03:45:11 PM, Itemize by SMTP Server on SMTP12/NextGenEXT at 14/07/2010 15:45:11, Serialize by Router on SMTP12/NextGenEXT at 14/07/2010 15:45:32, Serialize complete at 14/07/2010 15:45:32 Content-Type: multipart/alternative; boundary="=_alternative 001F99AECA257760_=" X-Virus-Checked: Checked by ClamAV on apache.org --=_alternative 001F99AECA257760_= Content-Type: text/plain; charset="US-ASCII" Ok, I see, So I guess I need to find out where the design doc is and have a look at that then? also can u limit views by using a field from the 'values' as a parameter. For example, say i have a value name as part of the view can i say ?name=Steven cheers S From: Robert Newson To: user@couchdb.apache.org Date: 14/07/2010 03:38 PM Subject: Re: Custom view parameters??? I believe the wiki page lists all the standard view parameters and there are no others, and no facility to add custom ones. However, you can fake some simple things using the _rewrite code. I think it's powerful enough to map your 'fromDate=' to 'startkey=', for example. More complicated transformations would, I think, need client-side Javascript or a server-side patch. B. On Wed, Jul 14, 2010 at 1:29 AM, wrote: > Yes, I realise this. perhaps you would like to re-read my question? > > > > > From: > Robert Newson > To: > user@couchdb.apache.org > Date: > 14/07/2010 03:26 PM > Subject: > Re: Custom view parameters??? > > > > The full set of view querying options are documented here; > > http://wiki.apache.org/couchdb/HTTP_view_API#Querying_Options > > HTH, > B. > > On Wed, Jul 14, 2010 at 1:19 AM, wrote: >> HI I am working on a couchDB database that has a view called >> search_with_criteria (pretty self explanatory) anyway this has >> functionality to add view parameters such as ?fromDate and ?toDate...I > am >> just trying to work out thow this all works...are these standard view > API >> parameters? or are you able to make your own 'custom parameters' in >> couchDB? if so Where would you store these?? >> >> oh also I should mention that the key of this view is a date with format >> YYYY-MM-DDThh:mm:ss >> >> Cheers >> S >> >> > > > --=_alternative 001F99AECA257760_=--