Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 89107 invoked from network); 14 Jul 2010 05:51:01 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 14 Jul 2010 05:51:01 -0000 Received: (qmail 86698 invoked by uid 500); 14 Jul 2010 05:51:00 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 86460 invoked by uid 500); 14 Jul 2010 05:50:57 -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 86452 invoked by uid 99); 14 Jul 2010 05:50:56 -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:50:56 +0000 X-ASF-Spam-Status: No, hits=0.7 required=10.0 tests=RCVD_IN_DNSWL_NONE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [74.125.83.180] (HELO mail-pv0-f180.google.com) (74.125.83.180) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Jul 2010 05:50:49 +0000 Received: by pvg12 with SMTP id 12so4603128pvg.11 for ; Tue, 13 Jul 2010 22:49:28 -0700 (PDT) Received: by 10.114.113.9 with SMTP id l9mr19691463wac.147.1279086567947; Tue, 13 Jul 2010 22:49:27 -0700 (PDT) Received: from [192.168.1.102] (c-98-248-172-14.hsd1.ca.comcast.net [98.248.172.14]) by mx.google.com with ESMTPS id n32sm98589722wag.11.2010.07.13.22.49.26 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 13 Jul 2010 22:49:27 -0700 (PDT) Sender: J Chris Anderson Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Apple Message framework v1081) Subject: Re: Custom view parameters??? From: J Chris Anderson In-Reply-To: Date: Tue, 13 Jul 2010 22:49:25 -0700 Content-Transfer-Encoding: 7bit Message-Id: <9E5FADAA-0386-4B5B-B557-0316BF68E52A@apache.org> References: To: user@couchdb.apache.org X-Mailer: Apple Mail (2.1081) X-Virus-Checked: Checked by ClamAV on apache.org On Jul 13, 2010, at 10:45 PM, Steven.Prentice@nextgen.net wrote: > Ok, I see, So I guess I need to find out where the design doc is and have > a look at that then? > You can do all the queries you describe. it is just a matter of translating them to the couchdb view api. These links are good for getting the high level understanding: http://wiki.apache.org/couchdb/View_collation http://www.cmlenz.net/archives/2007/10/couchdb-joins between that and the view api you should be able to get started. if you need more guidance, let us know. best, Chris > 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 >>> >>> >> >> >> > >