Hi Travis,
To query the view, try curl -X GET
http://127.0.0.1:8092/default/_design/<design_doc_name>/_view/<view_name>
Note: replace <design_doc_name> and <view_name>.
Here’s an example of query results from a view name “test” that I created where I only want the JSON documents that match the key “Dipti”
dipti$ curl -X GET http://127.0.0.1:8092/default/_design/dev_test/_view/test?key=“Dipti”
{“total_rows”:10,“rows”:[
{“id”:“dipti1”,“key”:“Dipti”,“value”:{“id”:27,“type”:“newMessage”,“msg”:“notification”}},
{“id”:“dipti2”,“key”:“Dipti”,“value”:{“id”:28,“type”:“newMessage”,“msg”:“notification”}},
{“id”:“dipti3”,“key”:“Dipti”,“value”:{“id”:30,“type”:“newMessage”,“msg”:“notification”}},
{“id”:“dipti4”,“key”:“Dipti”,“value”:{“id”:30,“type”:“newMessage”,“msg”:“notification”}},
{“id”:“dipti5”,“key”:“Dipti”,“value”:{“id”:31,“type”:“newMessage”,“msg”:“notification”}},
{“id”:“dipti6”,“key”:“Dipti”,“value”:{“id”:32,“type”:“newMessage”,“msg”:“notification”}},
{“id”:“dipti8”,“key”:“Dipti”,“value”:{“id”:33,“type”:“newMessage”,“msg”:“notification”}},
{“id”:“dipti9”,“key”:“Dipti”,“value”:{“id”:34,“type”:“newMessage”,“msg”:“notification”}}
]
}
You can find more information on the different arguments you can use for querying here: http://www.couchbase.com/docs/couchbase-manual-2.0/couchbase-views-writing-querying.html
hope this helps.