couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Robert Newson <robert.new...@gmail.com>
Subject Re: A question about compound keys
Date Sat, 16 Oct 2010 11:30:00 GMT
It's startkey and endkey not start_key and end_key :)

B.

On Sat, Oct 16, 2010 at 12:02 PM, Tracy Flynn
<couchdb@thisonejustforme.com> wrote:
> Any help is appreciated.
>
> I know I'm missing something basic.
>
> What I've read indicates that the following query
>
> http://127.0.0.1:5984/cups/_design/cups/_view/latest_by_customer?start_key=["greg_retsinas",606231154]&end_key=["greg_retsinas",606231154]
>
> should return
>
> {"total_rows":10,"offset":1,"rows":[
> {"id":"greg_retsinas-project_3_bulk_import_test-201008071451","key":["greg_retsinas",606231154],"value":null}
> ]}
>
> not
>
> {"total_rows":10,"offset":0,"rows":[
> {"id":"brian_vankonynenburg-tracy_test_output_1-201010151149","key":["brian_vankonynenburg",606231153],"value":null},
> {"id":"greg_retsinas-project_3_bulk_import_test-201008071451","key":["greg_retsinas",606231154],"value":null},
> {"id":"greg_retsinas-test_project_1_standup_payments_and_revenue-201008071451","key":["greg_retsinas",606231161],"value":null},
> {"id":"greg_retsinas-project_3_bulk_import_test-201008071443","key":["greg_retsinas",606231163],"value":null},
> {"id":"greg_retsinas-test_project_1_standup_payments_and_revenue-201008071443","key":["greg_retsinas",606231170],"value":null},
> {"id":"greg_retsinas-project_3_bulk_import_test-201008071435","key":["greg_retsinas",606231172],"value":null},
> {"id":"greg_retsinas-test_project_1_standup_payments_and_revenue-201008071435","key":["greg_retsinas",606231179],"value":null},
> {"id":"greg_retsinas-project_3_bulk_import_test-201008071431","key":["greg_retsinas",606231180],"value":null},
> {"id":"greg_retsinas-test_project_1_standup_payments_and_revenue-201008071431","key":["greg_retsinas",606231188],"value":null},
> {"id":"greg_retsinas-test_project_2_hold_for_delivery-201008071431","key":["greg_retsinas",606231188],"value":null}
> ]}
>
> What am I doing wrong?
>
> Tracy

Mime
View raw message