^ array:3 [
  "index" => "cutoff_docs_1"
  "_source" => array:28 [
    0 => "exam_id"
    1 => "college_id"
    2 => "course_id"
    3 => "cutoff_start"
    4 => "cutoff_end"
    5 => "cutoff_year"
    6 => "city_name"
    7 => "cutoff_round"
    8 => "cutoff_category"
    9 => "cutoff_category_remarks"
    10 => "exam_name"
    11 => "exam_short_form"
    12 => "course_short_form"
    13 => "cutoff_type"
    14 => "college_name"
    15 => "cutoff_quota"
    16 => "cutoff_section"
    17 => "cutoff_sub_category"
    18 => "parent_category"
    19 => "item_id"
    20 => "course_tag"
    21 => "course_tag_name"
    22 => "url_live"
    23 => "college_type"
    24 => "course_name"
    25 => "entrance_rating"
    26 => "sub_stream_id"
    27 => "course_name_search"
  ]
  "body" => array:5 [
    "from" => 0
    "size" => 1
    "sort" => array:5 [
      0 => array:1 [
        "cutoff_category" => array:1 [
          "order" => "asc"
        ]
      ]
      1 => array:1 [
        "entrance_rating" => array:1 [
          "order" => "desc"
        ]
      ]
      2 => array:1 [
        "cutoff_year" => array:1 [
          "order" => "desc"
        ]
      ]
      3 => array:1 [
        "cutoff_start" => array:1 [
          "order" => "asc"
        ]
      ]
      4 => array:1 [
        "cutoff_round" => array:1 [
          "order" => "asc"
        ]
      ]
    ]
    "query" => array:1 [
      "bool" => array:2 [
        "must" => array:1 [
          0 => array:1 [
            "terms" => array:1 [
              "college_id" => array:1 [
                0 => 57221
              ]
            ]
          ]
        ]
        "should" => []
      ]
    ]
    "aggs" => array:11 [
      "College" => array:1 [
        "terms" => array:3 [
          "field" => "college_id"
          "min_doc_count" => 1
          "size" => 1000
        ]
      ]
      "Exam" => array:1 [
        "terms" => array:2 [
          "field" => "exam_id"
          "min_doc_count" => 1
        ]
      ]
      "Stream" => array:1 [
        "terms" => array:2 [
          "field" => "stream_id"
          "min_doc_count" => 1
        ]
      ]
      "Year" => array:1 [
        "terms" => array:2 [
          "field" => "cutoff_year"
          "min_doc_count" => 1
        ]
      ]
      "Category" => array:1 [
        "terms" => array:2 [
          "field" => "cutoff_category"
          "min_doc_count" => 1
        ]
      ]
      "Course" => array:1 [
        "terms" => array:2 [
          "field" => "course_id"
          "min_doc_count" => 1
        ]
      ]
      "CourseName" => array:1 [
        "terms" => array:2 [
          "field" => "course_short_form"
          "min_doc_count" => 1
        ]
      ]
      "Round" => array:1 [
        "terms" => array:2 [
          "field" => "cutoff_round"
          "min_doc_count" => 1
        ]
      ]
      "Quota" => array:1 [
        "terms" => array:2 [
          "field" => "cutoff_quota"
          "min_doc_count" => 1
        ]
      ]
      "sub_category" => array:1 [
        "terms" => array:2 [
          "field" => "cutoff_sub_category"
          "min_doc_count" => 1
        ]
      ]
      "group_by_exam_id" => array:2 [
        "terms" => array:2 [
          "field" => "exam_id"
          "size" => 1000
        ]
        "aggs" => array:1 [
          "group_by_year" => array:2 [
            "terms" => array:2 [
              "field" => "cutoff_year"
              "size" => 10
            ]
            "aggs" => array:1 [
              "group_by_round" => array:2 [
                "terms" => array:2 [
                  "field" => "cutoff_round"
                  "size" => 20
                ]
                "aggs" => array:1 [
                  "group_by_categories" => array:1 [
                    "terms" => array:2 [
                      "field" => "cutoff_category"
                      "size" => 100
                    ]
                  ]
                ]
              ]
            ]
          ]
        ]
      ]
    ]
  ]
]
^ array:5 [
  "took" => 6
  "timed_out" => false
  "_shards" => array:4 [
    "total" => 1
    "successful" => 1
    "skipped" => 0
    "failed" => 0
  ]
  "hits" => array:3 [
    "total" => array:2 [
      "value" => 0
      "relation" => "eq"
    ]
    "max_score" => null
    "hits" => []
  ]
  "aggregations" => array:11 [
    "CourseName" => array:3 [
      "doc_count_error_upper_bound" => 0
      "sum_other_doc_count" => 0
      "buckets" => []
    ]
    "group_by_exam_id" => array:3 [
      "doc_count_error_upper_bound" => 0
      "sum_other_doc_count" => 0
      "buckets" => []
    ]
    "Category" => array:3 [
      "doc_count_error_upper_bound" => 0
      "sum_other_doc_count" => 0
      "buckets" => []
    ]
    "Quota" => array:3 [
      "doc_count_error_upper_bound" => 0
      "sum_other_doc_count" => 0
      "buckets" => []
    ]
    "Year" => array:3 [
      "doc_count_error_upper_bound" => 0
      "sum_other_doc_count" => 0
      "buckets" => []
    ]
    "sub_category" => array:3 [
      "doc_count_error_upper_bound" => 0
      "sum_other_doc_count" => 0
      "buckets" => []
    ]
    "College" => array:3 [
      "doc_count_error_upper_bound" => 0
      "sum_other_doc_count" => 0
      "buckets" => []
    ]
    "Round" => array:3 [
      "doc_count_error_upper_bound" => 0
      "sum_other_doc_count" => 0
      "buckets" => []
    ]
    "Stream" => array:3 [
      "doc_count_error_upper_bound" => 0
      "sum_other_doc_count" => 0
      "buckets" => []
    ]
    "Course" => array:3 [
      "doc_count_error_upper_bound" => 0
      "sum_other_doc_count" => 0
      "buckets" => []
    ]
    "Exam" => array:3 [
      "doc_count_error_upper_bound" => 0
      "sum_other_doc_count" => 0
      "buckets" => []
    ]
  ]
]