During the call to the javascript to build a view function, there is generally a single emit( ). Can their be more than 1 emit on a function?
function (doc, meta)
{
if (doc.testid__ == ‘php’)
{
emit(meta.id, NULL);
}
}
Multiple Emits:
function (doc, meta)
{
if (!(doc.type ))
{
return;
}
if (doc.type != ‘kids’)
{
return ;
}
//Multiple index building emits so that both kds will locate this document.
emit(doc.kids[0].name, NULL);
emit(doc.kids[1].name, NULL);
}