Sha256: 0d377fb39c1600abbff161ee0fb5002f38e6f108ef89940658c3ee7dfab4bf0d

Contents?: true

Size: 293 Bytes

Versions: 6

Compression:

Stored size: 293 Bytes

Contents

function(doc) {
  if (doc.tags) {
    // assumes doc.tags is an array of strings
    var tags = doc.tags;
    tags.sort();
    for (var i=0; i < tags.length; i++) {
      emit(tags[i], 1);
      for (var j = i+1; j < tags.length; j++) {
        emit(tags.slice(i, j+1), 1);
      }
    }
  }
}

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
mattly-exegesis-0.2.1 test/fixtures/designs/things/views/by_tag/map.js
mattly-exegesis-0.2.2 test/fixtures/designs/things/views/by_tag/map.js
mattly-exegesis-0.2.3 test/fixtures/designs/things/views/by_tag/map.js
mattly-exegesis-0.2.5 test/fixtures/designs/things/views/by_tag/map.js
mattly-exegesis-0.2.6 test/fixtures/designs/things/views/by_tag/map.js
mattly-exegesis-0.2.8 test/fixtures/designs/things/views/by_tag/map.js