t = db.mr_index t.drop() outName = "mr_index_out" out = db[outName] out.drop() t.insert( { tags : [ 1 ] } ) t.insert( { tags : [ 1 , 2 ] } ) t.insert( { tags : [ 1 , 2 , 3 ] } ) t.insert( { tags : [ 3 ] } ) t.insert( { tags : [ 2 , 3 ] } ) t.insert( { tags : [ 2 , 3 ] } ) t.insert( { tags : [ 1 , 2 ] } ) m = function(){ for ( i=0; i