Emitting random number of keys from different documents

Hi Couchbase community

I need to emit keys that vary in number between documents, for example:

Document 1
{
KeyToEmit1
KeyToEmit2
KeyToEmit3
}

Document 2
{
KeyToEmit1
KeyToEmit2
}

if I call emit(KeyToEmit3) will that cause conflict with Document 2 because it doent have KeyToEmit3 or is couchbase smart enough to ignore this? I’m developing an android app btw

Thanks
:slight_smile:

The view index allows duplicate keys, so it’s fine for multiple documents to emit the same key, and in fact this is done pretty often.