You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@couchdb.apache.org by GitBox <gi...@apache.org> on 2019/10/28 14:33:13 UTC
[GitHub] [couchdb-documentation] mikerhodes commented on issue #410: add rfc
for map indexes
mikerhodes commented on issue #410: add rfc for map indexes
URL: https://github.com/apache/couchdb-documentation/pull/410#issuecomment-546973866
@garrensmith For me this would be much easier to follow with a worked example. As we're still dealing in view groups here, I suggest something like:
Two docs:
```
{
"_id": "foo",
"hello": "mike"
}
{
"_id": "bar",
"hello": "garren"
}
```
Two map indexes:
```
// view name "numbers"
function map(doc) {
emit([1,2,3], doc.hello);
}
// view name "letters"
function map(doc) {
emit("b", doc.hello);
}
```
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services