incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sebastian Cohnen <sebastiancoh...@googlemail.com>
Subject Re: Doubts with start and end keys + descending=true
Date Wed, 15 Dec 2010 18:58:50 GMT
try to flip startkey/endkey when discending=true :)

On 15.12.2010, at 18:49, Fabio Batalha Cunha dos Santos wrote:

> Hello All,
> 
> I'm trying to set the descending=true in a view query when using the
> parameters start/end keys.
> 
> Example:
> 
> results a bunch of registers!
> http://fabiobatalha.couchone.com/scieloorg/_design/couchdb/_view/article_date?startkey=[%22arg%22]&endkey=[%22arg%22,{}]
> 
> results an empty list!
> http://fabiobatalha.couchone.com/scieloorg/_design/couchdb/_view/article_date?startkey=[%22arg%22]&endkey=[%22arg%22,{}]&descending=true
> 
> I just figure out that the descending did not take effects when using those
> parameters.
> 
> How can I implement this kind of query?
> 
> Thanks,
> *Fabio Batalha C. Santos*
> Colegiado SciELO
> www.scielo.org
> FAPESP - CNPq - BIREME - FapUNIFESP


Mime
View raw message