Duplicate values in android view

I have the following view

function(doc) {
    if (doc.type === 'account') {
      emit(doc.user_id, null);
    }

Occasionally I get multiple docs in the view with the same document id (but different version). It only seems to happen in android. If I rebuild my views (in order to force it to re-index) the problem goes away. I’ve asked about this before but I think my post got deleted, not sure why.

Hi @nick-couchbase,
Which version of CBL Android uses? Does your app have multiple views?
I assume you hit this issue https://github.com/couchbase/couchbase-lite-java-core/issues/1098
Thanks!

v1.2 i think. Yes, multiple views. The problem certainly looks similar. I wouldn’t say I get every version back though.