incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Simon Metson <simonmet...@googlemail.com>
Subject Re: Selecting part of a multi-value key
Date Sun, 21 Feb 2010 22:10:08 GMT
Hi,
	something like ?group=true&startkey=['mytype', 0]&endkey=['mytype',  
"A"] would work if your dates are numbers, if you have them as strings  
something similar would work (lots of Z's...)
Cheers
Simon

On 21 Feb 2010, at 22:04, David Van Couvering wrote:

> I have a view that generates a type and a date as a composite key.   
> This way
> the results are sorted by type and then by date.
>
> I would like to call the view so that I get all rows that match a  
> given
> type, regardless of date.  I need them sorted by date.
>
> Is this possible?  I've tried varying syntaxes to no success.  I'd  
> prefer
> not to generate separate views for each type, but I'll do that if  
> that's the
> only approach.
>
> Thanks!
>
> David
>
> -- 
> David W. Van Couvering
>
> http://www.linkedin.com/in/davidvc
> http://davidvancouvering.blogspot.com
> http://twitter.com/dcouvering


Mime
View raw message