-
DescriptionCloudant &skip parameter no more works Steps to ReproduceTry to follow the guide here: with this: the limit is respected, but Expected BehaviourRows are skipped as before. Your Environment
Additional Contextclouseau-2.17.0 |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 5 replies
-
I cannot confirm this. Worked example: $ curl -X PUT localhost:15984/abcd
{"ok":true}
$ curl -X PUT localhost:15984/abcd/a -d '{"name":"a"}'
{"ok":true,"id":"a","rev":"1-5be3091b08e7e742e372901aede1796a"}
$ curl -X PUT localhost:15984/abcd/b -d '{"name":"b"}'
{"ok":true,"id":"b","rev":"1-f8530e40c182151cdbc43993a087fa21"}
$ curl -X PUT localhost:15984/abcd/c -d '{"name":"c"}'
{"ok":true,"id":"c","rev":"1-03a8cbc32975d2f58295a1ea2617d965"}
$ curl -X PUT localhost:15984/abcd/d -d '{"name":"d"}'
{"ok":true,"id":"d","rev":"1-de10dc97e9b77ce7a64a7df692d7f845"}
$ curl -X PUT localhost:15984/abcd/e -d '{"name":"e"}'
{"ok":true,"id":"e","rev":"1-3355d6ee1cad28fa5ef78da20a2cb196"}
$
$
$ curl -X PUT localhost:15984/abcd/_design/view -d '{"views":{"by_name":{"map":"function(doc){emit(doc.name, null);}"}}}'
{"ok":true,"id":"_design/view","rev":"1-7b659b3fdfb061ee432189c496b94932"}
$
$
$ curl localhost:15984/abcd/_design/view/_view/by_name
{"total_rows":5,"offset":0,"rows":[
{"id":"a","key":"a","value":null},
{"id":"b","key":"b","value":null},
{"id":"c","key":"c","value":null},
{"id":"d","key":"d","value":null},
{"id":"e","key":"e","value":null}
]}
$
$
$ curl localhost:15984/abcd/_design/view/_view/by_name?limit=3
{"total_rows":5,"offset":0,"rows":[
{"id":"a","key":"a","value":null},
{"id":"b","key":"b","value":null},
{"id":"c","key":"c","value":null}
]}
$
$
$ curl "localhost:15984/abcd/_design/view/_view/by_name?limit=3&skip=2"
{"total_rows":5,"offset":2,"rows":[
{"id":"c","key":"c","value":null},
{"id":"d","key":"d","value":null},
{"id":"e","key":"e","value":null}
]} Be sure to put the url in "quotation marks" if you are using a |
Beta Was this translation helpful? Give feedback.
-
Should this description reference "Clouseau" instead of "Cloudant"? |
Beta Was this translation helpful? Give feedback.
-
couchdb-lucene is not clouseau, the former supports |
Beta Was this translation helpful? Give feedback.
couchdb-lucene is not clouseau, the former supports
skip
but the latter does not.