Is it possible to count the number of unique values by writing a couchdb view?
A typical example is to find the number of tags in a blog application.
Consider the following 2 docs.
{
"_id": "posts/1",
"title": "post 1",
"tags": ["foo", "bar"]
}
{
"_id": "posts/2",
"title": "post 2",
"tags": ["foo", "foobar"]
}
Is it possible to find that there are 3 tags?
Anand
