Re: Doubts with start and end keys + descending=true

2010-12-16 Thread Sebastian Cohnen
2arg%22,{}]&endkey=[%22arg%22]&descending=true >>> >>> "key":["arg","20101100"] >>> "key":["arg","20101100"] >>> "key":["arg","20101000"] >>> "

Re: Doubts with start and end keys + descending=true

2010-12-16 Thread Fabio Batalha Cunha dos Santos
I will create a new page in the wiki with some query samples using the startkey + endkey + descending *Fabio Batalha C. Santos* Colegiado SciELO www.scielo.org FAPESP - CNPq - BIREME - FapUNIFESP On Thu, Dec 16, 2010 at 10:45 AM, Nils Breunese wrote: > Fabio Batalha wrote: > > > Do you know

Re: Doubts with start and end keys + descending=true

2010-12-16 Thread Nils Breunese
Fabio Batalha wrote: > Do you know a better place to read and learn those tricks. I didn't found > any issue about the flip in the wiki and in the book couchdb definitive > guide. You can modify the wiki if you feel that is needed. You can also leave comments for the Definitive Guide if you like

Re: Doubts with start and end keys + descending=true

2010-12-16 Thread Fabio Batalha
quot;:["arg","20101100"] > > "key":["arg","20101100"] > > "key":["arg","20101000"] > > "key":["arg","20101000"] > > > > Instead of this result I have a empty list

Re: Doubts with start and end keys + descending=true

2010-12-16 Thread Sebastian Cohnen
key=[%22arg%22]&descending=true > > "key":["arg","20101100"] > "key":["arg","20101100"] > "key":["arg","20101000"] > "key":["arg","20101000"] > > Instead of t

Re: Doubts with start and end keys + descending=true

2010-12-16 Thread Fabio Batalha Cunha dos Santos
tos* Colegiado SciELO www.scielo.org FAPESP - CNPq - BIREME - FapUNIFESP On Wed, Dec 15, 2010 at 7:49 PM, Nils Breunese wrote: > You quite literally need to flip your startkey and endkey, so you'll need > to query with ?startkey=[%22arg%22,{}]&endkey=[%22mex%22]&descending=true >

RE: Doubts with start and end keys + descending=true

2010-12-15 Thread Nils Breunese
december 2010 21:24 Aan: user@couchdb.apache.org Onderwerp: Re: Doubts with start and end keys + descending=true Now the descending parameter is working but I'm still not having the expected result. For example: 1. Results from arg to mex in ascending mode. http://fabiobatalha.couchone.com

Re: Doubts with start and end keys + descending=true

2010-12-15 Thread Fabio Batalha Cunha dos Santos
Now the descending parameter is working but I'm still not having the expected result. For example: 1. Results from arg to mex in ascending mode. http://fabiobatalha.couchone.com/scieloorg/_design/couchdb/_view/article_date?startkey=[%22arg%22]&endkey=[%22mex%22,{}] the result have arg,chl and me

Re: Doubts with start and end keys + descending=true

2010-12-15 Thread Matthew Woodward
On Wed, Dec 15, 2010 at 10:58 AM, Sebastian Cohnen < sebastiancoh...@googlemail.com> wrote: > try to flip startkey/endkey when discending=true :) > Yep, ran into this just yesterday and that was indeed the trick. -- Matthew Woodward m...@mattwoodward.com http://blog.mattwoodward.com identi.ca /

Re: Doubts with start and end keys + descending=true

2010-12-15 Thread Sebastian Cohnen
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://fabiobat