Re: Views with parameters

2009-07-21 Thread Brian Candler
On Mon, Jul 20, 2009 at 03:43:09PM -0700, Nitin Borwankar wrote: Brian Candler wrote: On Fri, Jul 17, 2009 at 07:35:21PM +0200, Nils Breunese wrote: For show and list I'd start here: http://wiki.apache.org/couchdb/Formatting_with_Show_and_List The documentation for _list is

Re: Views with parameters

2009-07-21 Thread Chris Anderson
On Tue, Jul 21, 2009 at 12:30 AM, Brian Candlerb.cand...@pobox.com wrote: On Mon, Jul 20, 2009 at 03:43:09PM -0700, Nitin Borwankar wrote: Brian Candler wrote: On Fri, Jul 17, 2009 at 07:35:21PM +0200, Nils Breunese wrote: For show and list I'd start here:

Re: Views with parameters

2009-07-20 Thread Brian Candler
On Fri, Jul 17, 2009 at 07:35:21PM +0200, Nils Breunese wrote: For show and list I'd start here: http://wiki.apache.org/couchdb/Formatting_with_Show_and_List The documentation for _list is completely out of date.

Re: Views with parameters

2009-07-20 Thread Nitin Borwankar
Brian Candler wrote: On Fri, Jul 17, 2009 at 07:35:21PM +0200, Nils Breunese wrote: For show and list I'd start here: http://wiki.apache.org/couchdb/Formatting_with_Show_and_List The documentation for _list is completely out of date. out of date wrt 0.9 or 0.10 ? Nitin

Re: Views with parameters

2009-07-17 Thread Brian Candler
On Wed, Jul 15, 2009 at 06:26:23PM +0200, Manuel de la Pena wrote: Is passing parameter in the view url work? Consider a view as static: it is built from the state of all the documents in your database, indexed for rapid querying by key. When you query it, you can pass parameters like 'keys',

Views with parameters

2009-07-15 Thread Manuel de la Pena
Hello, I have started looking a couchDb for a project of mine. I fully understand the idea of documents and the work wot be performed with them. But I have some question about the views: is there a way to pass parameter to the views? So far all I have read points that views are that, views and

Re: Views with parameters

2009-07-15 Thread Paul Davis
On Wed, Jul 15, 2009 at 12:26 PM, Manuel de la Penaman...@themacaque.com wrote: Hello, I have started looking a couchDb for a project of mine. I fully understand the idea of documents and the work wot be performed with them. But I have some question about the views: is there a way to pass

Re: Views with parameters

2009-07-15 Thread Robert Newson
Well, that depends on what you're attempting with numbers. For the record, if you index numeric values then sorting already works correctly. That is if you called doc.add(1) and doc.add(10), the order would be correct when you sorted. What won't be correct is a range query (q=[1 TO 10]) as that's