Skip to content Skip to sidebar Skip to footer

Temporary Couchdb View Of Documents With Doc_id Matching Regular Expression

I have a couchdb database containing different types of documents. Unfortunately some of those documents were generated without a type field, so I can not easily distinguish them.

Solution 1:

It works as expected:

function(doc) {
  if (doc._id.match(/^user_.*$/)) {
    emit(null, doc);
  }
}

Have you even tried anything?

Post a Comment for "Temporary Couchdb View Of Documents With Doc_id Matching Regular Expression"