Commit 39ae77af authored by agrt56's avatar agrt56
Browse files

Add timestamp key to skill_question/freetext_answers_full

parent 3e8d1fc4
......@@ -62,7 +62,7 @@
"reduce": "_count"
},
"freetext_answers_full": {
"map": "function(doc) { if (doc.type == 'skill_question_answer') { emit(doc.questionId, doc); } }"
"map": "function(doc) { if (doc.type == 'skill_question_answer') { emit([doc.questionId, doc.timestamp], doc); } }"
},
"by_session_only_id_for_all": {
"map": "function(doc) { if (doc.type == 'skill_question' && doc.active == 1) { emit(doc.sessionId, null); }}"
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment