incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Panop S." <aun.pa...@gmail.com>
Subject get the next document with key
Date Wed, 14 Jul 2010 05:37:53 GMT
Hello Couch Lover,

            I have document and everything works fine by sending
key="/directory" like ....

{"total_rows":17,"offset":1,"rows":[
{"id":"urn:uuid:a3bf22ac-dd46-4ae1-a9e4-578202a69cbe","key":"/directory","value":{"_id":"urn:uuid:a3bf22ac-dd46-4ae1-a9e4-578202a69cbe","_rev":"1-c34b06060010a89c972fb0aeda7f90a9","title":"Greeting"}},
{"id":"urn:uuid:fe6cba14-853a-42c8-b62b-3ea6b1606a60","key":"/directory","value":{"_id":"urn:uuid:fe6cba14-853a-42c8-b62b-3ea6b1606a60","_rev":"1-2a72eabf8f326a263a6f183a79a62d30","title":"Greeting"},
{"id":"urn:uuid:0f52a10f-b185-4ae6-9eb1-31178675ba0e","key":"/directory/id/urn:uuid:11d437d9-681e-4360-8dbf-5896284a018e","value":{"_id":"urn:uuid:0f52a10f-b185-4ae6-9eb1-31178675ba0e","_rev":"4-333c3d3187de43acb087841a3c0cf5e3","title":"Greeting"}},
{"id":"urn:uuid:3fd20458-77ac-40c2-bb1a-db9dbabd0e30","key":"/directory/id/urn:uuid:11d437d9-681e-4360-8dbf-5896284a018e","value":{"_id":"urn:uuid:3fd20458-77ac-40c2-bb1a-db9dbabd0e30","_rev":"3-079c800100a388d96a486652d3099284","title":"Greeting"}},
{"id":"urn:uuid:0f52a10f-b185-4ae6-9eb1-31178675ba0e","key":"/directory/id/urn:uuid:619aecea-603d-482c-ad5a-0b83c529bbe5","value":{"_id":"urn:uuid:0f52a10f-b185-4ae6-9eb1-31178675ba0e","_rev":"4-333c3d3187de43acb087841a3c0cf5e3","title":"Greeting"}},
{"id":"urn:uuid:3fd20458-77ac-40c2-bb1a-db9dbabd0e30","key":"/directory/id/urn:uuid:619aecea-603d-482c-ad5a-0b83c529bbe5","value":{"_id":"urn:uuid:3fd20458-77ac-40c2-bb1a-db9dbabd0e30","_rev":"3-079c800100a388d96a486652d3099284","title":"Greeting"}},
{"id":"urn:uuid:ca0da38e-713d-4181-b41e-eef441dac5cf","key":"/directory/id/urn:uuid:619aecea-603d-482c-ad5a-0b83c529bbe5","value":{"_id":"urn:uuid:ca0da38e-713d-4181-b41e-eef441dac5cf","_rev":"3-7b509c175d5b0caeee269ee23aeb1ab5","title":"Greeting"}},
{"id":"urn:uuid:e7fc77f4-9022-4989-8870-f6953dffbfb8","key":"/directory/id/urn:uuid:619aecea-603d-482c-ad5a-0b83c529bbe5","value":{"_id":"urn:uuid:e7fc77f4-9022-4989-8870-f6953dffbfb8","_rev":"1-e8511521a1ac4ba5607b8e05ef206f56","title":"Greeting"}},
{"id":"urn:uuid:3fd20458-77ac-40c2-bb1a-db9dbabd0e30","key":"/directory/id/urn:uuid:a3bf22ac-dd46-4ae1-a9e4-578202a69cbe","value":{"_id":"urn:uuid:3fd20458-77ac-40c2-bb1a-db9dbabd0e30","_rev":"3-079c800100a388d96a486652d3099284","title":"Greeting"}},
{"id":"urn:uuid:ac354d8a-107d-4039-8379-64e919e4d62e","key":"/directory/id/urn:uuid:a3bf22ac-dd46-4ae1-a9e4-578202a69cbe","value":{"_id":"urn:uuid:ac354d8a-107d-4039-8379-64e919e4d62e","_rev":"1-2b94a5c14147bf9ca7f2b7512c0d378e","title":"Greeting"}}
]}

      so this will return documents with all ranges of document id
with given key .....



       but one day I need to implement to get the specific range of docid
with always group by the key I have how to do that ?


thanks,
Aun.

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message