Skip to content
Snippets Groups Projects
Commit 39ae77af authored by Andreas Gärtner's avatar Andreas Gärtner
Browse files

Add timestamp key to skill_question/freetext_answers_full

parent 3e8d1fc4
No related merge requests found
......@@ -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); }}"
......
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