I’m wondering if someone could help with some issues that I’m running into with Couchbase. I’m interested in using it as part of a SaaS offering that I’m working on. For now I’m using the community edition to get my feet wet and determine if its a viable solution for my need.
I installed Couchbase 3.0.1-1444-rel on OSX 10.9.5.
Using the Couchbase Console I created a dev view called “by_name” on the beer-sample bucket. The map function is:
function (doc, meta) {
if (doc.type=="beer")
emit(doc.name, null);
}
After creating this I wish to use the filter drop down to search for the document(s) that has a beer name called specifically “Blonde”. There should be one document that fits this criteria. When I enter this (double quotes included around it) in the filter next to key and click show results I get no results back.
Questions:
-
How do I get the above to work correctly?
1a) If I try this via http (127.0.0.1:8092/beer-sample/_design/dev_beer/_view/by_id?key=“Blonde”) I get the following result:{“total_rows”:79,“rows”:[
{“id”:“manhattan_beach_brewing-blonde”,“key”:“Blonde”,“value”:null}
]
} -
If I were to use startkey and endkey and enter “Blonde” for both shouldn’t I get the same result? Currently I get no results.
-
If I use startkey (but no stop key) and enter “Blonde” I get results starting at “Blonde” but it continues to display all subsequent documents. Is this expected behavior?