map reduce を使用して、ユーザーのビジネス評価を 1 つのコレクションに集約しようとしています。
mapper = Code("""
function(){
var userID = this.user_id;
var business = this.business_id;
var rating = this.stars;
emit(userId, {business_id: business, stars: rating});
""")
reducer = Code("""
function(key, values){
var results = new Object();
results.values = values;
return results;
{u'_id': u'--65q1FpAL_UQtVZ2PTGew', u'value': {business: rating}, {business: rating}} を取得することを期待します
しかし、私が得ているのは {u'_id': u'--65q1FpAL_UQtVZ2PTGew', u'value': [u'values':[[u'values':[ u'values': [{business: rating} 、{ビジネス: 評価}...
出力から余分な「値」タグをすべて削除するにはどうすればよいですか?