Hi,
I'm wondering if the following is possible without changing my Datamodel (using AWS ES so can't install custom versions either). Whenever I try to aggregate by a nested term I get no results, which I'm guessing is due to the lack of nested object support.
What I want is a line trend chart showing how the SelectedOptoinValues change for each one of these QuestionTitle's changes through time (each day) as surveys are entered. The data in ES looks like:
{
"_index": "completedsurveys",
"_type": "completedsurvey",
"_id": "8",
"_score": 1,
"_source": {
"id": 8,
"questionResponses": [
{
"questionId": 1,
"questionTitle": "ABC",
"selectedOptionValue": 5,
},
{
"questionId": 3,
"questionTitle": "DEF",
"selectedOptionValue": 2,
},
{
"questionId": 4,
"questionTitle": "GHI",
"selectedOptionValue": 5,
},
],
"cultureCode": "en-US",
"createdAt": "2019-02-19T05:01:27.695674Z"
},
"fields": {
"createdAt": [
"2019-02-19T05:01:27.695Z"
]
}
}