mapreduce - CouchDB-Why my rerduce is always coming as false ? I am not able to reduce anything properly -


i new couchdb. have 9 gb dataset loaded couchdb. able map correctly. cannot reduce of results using code written in reduce column. when tried log, log shows rereduce values false. need special while doing map() or how set rereduce value true??

a sample of data follows:

{    "_id": "33d4d945613344f13a3ee92933b160bf",    "_rev": "1-0425ca93e3aa939dff46dd51c3ab86f2",    "release": {        "genres": {            "genre": "electronic"        },        "status": "accepted",        "videos": {            "video": [                {                    "title": "[1995] bola - krak jakomo",                    "duration": 349,                    "description": "[1995] bola - krak jakomo",                    "src": "http://www.youtube.com/watch?v=krelxoythpi",                    "embed": true                },                {                    "title": "bola - forcasa 3",                    "duration": 325,                    "description": "bola - forcasa 3",                    "src": "http://www.youtube.com/watch?v=lz9ituo5xtc",                    "embed": true                },                {                    "title": "bola (darrell fitton) - metalurg (mv)",                    "duration": 439,                    "description": "bola (darrell fitton) - metalurg (mv)",                    "src": "http://www.youtube.com/watch?v=_mypoomraeq",                    "embed": true                }            ]        },        "labels": {            "label": {                "catno": "ska005",                "name": "skam"            }        },        "companies": "",        "styles": {            "style": [                "downtempo",                "experimental",                "ambient"            ]        },        "formats": {            "format": {                "text": "",                "name": "vinyl",                "qty": 1,                "descriptions": {                    "description": [                        "12\"",                        "limited edition",                        "33 ⅓ rpm"                    ]                }            }        },        "country": "uk",        "id": 1928,        "released": "1995-00-00",        "artists": {            "artist": {                "id": 390,                "anv": "",                "name": "bola",                "role": "",                "tracks": "",                "join": ""            }        },        "title": 1,        "master_id": 13562,        "tracklist": {            "track": [                {                    "position": "a1",                    "duration": "4:33",                    "title": "forcasa 3"                },                {                    "position": "a2",                    "duration": "5:48",                    "title": "krak jakomo"                },                {                    "position": "b1",                    "duration": "7:50",                    "title": "metalurg 2"                },                {                    "position": "b2",                    "duration": "6:40",                    "title": "balloom"                }            ]        },        "data_quality": "correct",        "extraartists": {            "artist": {                "id": 388200,                "anv": "",                "name": "paul solomons",                "role": "mastered by",                "tracks": "",                "join": ""            }        },        "notes": "limited 480 copies.\na1 shorter version found on 'soup' lp.\na2 ends in lock groove."    } } 

my intention count mapped values. mapping function follows:

function(doc){  if(doc.release) emit(doc.release.title,1) } 

map results shows around 5800 results

i want use following functions in reduce tab count: reduce: _count or _sum

it not give single rounded value. cannot simple _count operations right !!! :(

for screenshot,http://s11.postimg.org/lz9ilzhtf/image.png

please me !!!

what got sum of values per title. wanted, sum of values in general.

change grouping drop-down list none.

check couchddb's wiki more details on grouping.


Comments

Popular posts from this blog

c# - Validate object ID from GET to POST -

node.js - Custom Model Validator SailsJS -

php - Find a regex to take part of Email -