0
Meine Mapping istElasticsearch - Gruppierung Aggregation - 2 Felder
{
"myapp": {
"mappings": {
"attempts": {
"properties": {
"answers": {
"properties": {
"question_id": {
"type": "long"
},
"status": {
"type": "long"
}
}
},
"exam_id": {
"type": "long"
}
}
}
}
}
}
und ich möchte Gruppe von question_id und Status
ich für jeden wissen wollen question_id wie viele Status 1 oder 2
PS 2 Versuche können die gleichen Fragen haben