Sorting on nested field and then apply aggregation

"visitor_data": [

        {

          "end_date": "2021-06-08",

          "pre_status": "1",

          "evisitor": true,

          "edition_id": "644659",

          "flag": "1",

          "event_functionality": "open",

          "completed_on": "1535519400",

          "interest_date": "1535519400",

          "visitor_score": "10",

          "is_verified": true,

          "visitor_published": "1",

          "event_id": "9",

          "event_published": "1",

          "event_type": "1",

          "interest": 1000,

          "start_date": "2020-06-06"

        },

        {

          "end_date": "2021-12-17",

          "evisitor": true,

          "edition_id": "747339",

          "flag": "1",

          "event_functionality": "draft",

          "completed_on": "1579179872",

          "interest_date": "1579179872",

          "is_verified": true,

          "visitor_published": "1",

          "event_id": "9",

          "event_published": "1",

          "event_type": "1",

          "interest": 1000,

          "start_date": "2021-11-17"

        },

        {

          "end_date": "2019-07-28",

          "evisitor": true,

          "edition_id": "716029",

          "flag": "1",

          "event_functionality": "draft",

          "completed_on": "1579514911",

          "interest_date": "1579514911",

          "is_verified": true,

          "visitor_published": "1",

          "event_id": "333905",

          "event_published": "1",

          "event_type": "1",

          "interest": 1000,

          "start_date": "2019-07-19"

        }

]

Hi,

In above example data. visitor_data is nested key. which store event details in which user visited. Now,

I want to fetch all unique event_id in which user visited with order by end_date.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.