The playerlist view creates a list of all the
players by using a map function that looks for "player" records.
function (doc, meta) { if (doc.jsonType == "player") { emit(meta.id, null); } }
This outputs a list of players in the format:
{ "total_rows" : 81, "rows" : [ { "value" : null, "id" : "Aaron0", "key" : "Aaron0" }, { "value" : null, "id" : "Aaron1", "key" : "Aaron1" }, { "value" : null, "id" : "Aaron2", "key" : "Aaron2" }, { "value" : null, "id" : "Aliaksey0", "key" : "Aliaksey0" }, { "value" : null, "id" : "Aliaksey1", "key" : "Aliaksey1" } ] }